1 write to _vertScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5596
_vertScrollBar
= null!;
104 references to _vertScrollBar
System.Windows.Forms (104)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (3)
100
if (owner.
_vertScrollBar
.Visible)
104
return owner.
_vertScrollBar
.AccessibilityObject;
131
if (owner.
_vertScrollBar
.Visible)
System\Windows\Forms\Controls\DataGridView\DataGridView.ControlCollection.cs (2)
37
if (value != _owner._horizScrollBar && value != _owner.
_vertScrollBar
&& value != _owner._editingPanel)
52
if (this[i] == _owner._horizScrollBar || this[i] == _owner.
_vertScrollBar
|| this[i] == _owner._editingPanel)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (19)
464
_vertScrollBar
.Top = 0;
465
_vertScrollBar
.AccessibleName = SR.DataGridView_AccVerticalScrollBarAccName;
466
_vertScrollBar
.Left = ClientRectangle.Width -
_vertScrollBar
.Width;
467
_vertScrollBar
.Visible = false;
468
_vertScrollBar
.Scroll += DataGridViewVScrolled;
469
Controls.Add(
_vertScrollBar
);
2136
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
2138
rectDisplay.Width -=
_vertScrollBar
.Width;
2141
rectDisplay.X =
_vertScrollBar
.Width;
2211
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
2213
if (
_vertScrollBar
.Bounds.Contains(ptMouse))
4096
if (value >
_vertScrollBar
.Maximum - fittingTrailingScrollingRowsHeight)
4098
value =
_vertScrollBar
.Maximum - fittingTrailingScrollingRowsHeight;
4107
if (
_vertScrollBar
.Enabled)
4109
_vertScrollBar
.Value = value;
4116
protected ScrollBar VerticalScrollBar =>
_vertScrollBar
;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (80)
4537
if (
_vertScrollBar
.Enabled)
4541
int oldVertScrollBarValue =
_vertScrollBar
.Value;
4542
int oldThumbHeight = Math.Max(((
_vertScrollBar
.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) *
_vertScrollBar
.LargeChange) /
_vertScrollBar
.Maximum, 8);
4544
_vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
4545
Debug.Assert(
_vertScrollBar
.Maximum > 0);
4546
_vertScrollBar
.Value = ComputeHeightOfScrolledOffRows();
4547
_vertScrollBar
.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight;
4548
VerticalScrollingOffset =
_vertScrollBar
.Value;
4550
if (
_vertScrollBar
.Visible
4553
(
_vertScrollBar
.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) *
_vertScrollBar
.LargeChange /
_vertScrollBar
.Maximum,
4557
_vertScrollBar
.Invalidate();
4560
Debug.Assert(VerticalScrollingOffset ==
_vertScrollBar
.Value);
5595
_vertScrollBar
?.Dispose();
8572
Debug.Assert(!
_vertScrollBar
.Enabled
8573
|| !
_vertScrollBar
.Visible
8574
||
_vertScrollBar
.Maximum == visibleRowsHeight - frozenVisibleRowsHeight);
8988
minimumWidth +=
_vertScrollBar
.Width;
9299
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible &&
_vertScrollBar
.Bounds.Contains(x, y))
10031
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
10033
_vertScrollBar
.Invalidate();
10169
int vertScrollBarWidth =
_vertScrollBar
.Width = SystemInformation.VerticalScrollBarWidth;
10305
rightToLeftInternal ? _layout.Data.X -
_vertScrollBar
.Width : _layout.Data.Right,
10307
_vertScrollBar
.Width,
10357
_vertScrollBar
.Minimum = 0;
10358
_vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
10359
Debug.Assert(
_vertScrollBar
.Maximum > 0);
10360
_vertScrollBar
.Value = ComputeHeightOfScrolledOffRows();
10361
_vertScrollBar
.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight;
10362
_vertScrollBar
.Bounds = new Rectangle(
10363
rightToLeftInternal ? _layout.Data.X -
_vertScrollBar
.Width : _layout.Data.Right,
10365
_vertScrollBar
.Width,
10367
_vertScrollBar
.Enabled = Enabled;
10368
_vertScrollBar
.Visible = true;
10369
_vertScrollBar
.Invalidate();
10371
VerticalScrollingOffset =
_vertScrollBar
.Value;
10375
_vertScrollBar
.Visible = false;
10378
_vertScrollBar
.Enabled = false;
10379
_vertScrollBar
.Minimum = 0;
10380
_vertScrollBar
.Maximum = 1;
10381
_vertScrollBar
.LargeChange = 1;
10382
_vertScrollBar
.Value = 0;
14982
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
14986
_vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
14988
_vertScrollBar
.Enabled = true;
16467
ScrollBar sb = (verticalScroll ?
_vertScrollBar
: _horizScrollBar);
16519
VerticalOffset -= fullNotches *
_vertScrollBar
.LargeChange;
16520
if (Math.Abs(VerticalOffset - originalVerticalOffset) >= Math.Abs(fullNotches *
_vertScrollBar
.LargeChange))
16565
while (
_vertScrollBar
.Value !=
_vertScrollBar
.Minimum && absScrollBands > 0)
16571
if (
_vertScrollBar
.Value ==
_vertScrollBar
.Minimum)
16586
&&
_vertScrollBar
.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16587
<=
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
16597
if (
_vertScrollBar
.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16598
>
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
26324
if (
_vertScrollBar
.Enabled)
26326
_vertScrollBar
.Value = VerticalScrollingOffset;
28432
if (
_vertScrollBar
.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
28433
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
28444
if (
_vertScrollBar
.Value !=
_vertScrollBar
.Minimum)
28457
VerticalOffset += Math.Max(firstDisplayedScrollingRowHeight,
_vertScrollBar
.LargeChange);
28464
VerticalOffset -=
_vertScrollBar
.LargeChange;
28473
if (se.NewValue >=
_vertScrollBar
.Maximum -
_vertScrollBar
.LargeChange)
28476
VerticalOffset =
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight);
28851
if (
_vertScrollBar
is not null)
28853
_vertScrollBar
.MouseEnter -= ScrollBar_MouseEnter;
28854
_vertScrollBar
.MouseLeave -= ScrollBar_MouseLeave;
29949
if (
_vertScrollBar
is not null)
29951
_vertScrollBar
.MouseEnter += ScrollBar_MouseEnter;
29952
_vertScrollBar
.MouseLeave += ScrollBar_MouseLeave;