1 write to _vertScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5593
_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
);
2135
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
2137
rectDisplay.Width -=
_vertScrollBar
.Width;
2140
rectDisplay.X =
_vertScrollBar
.Width;
2210
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
2212
if (
_vertScrollBar
.Bounds.Contains(ptMouse))
4095
if (value >
_vertScrollBar
.Maximum - fittingTrailingScrollingRowsHeight)
4097
value =
_vertScrollBar
.Maximum - fittingTrailingScrollingRowsHeight;
4106
if (
_vertScrollBar
.Enabled)
4108
_vertScrollBar
.Value = value;
4115
protected ScrollBar VerticalScrollBar =>
_vertScrollBar
;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (80)
4534
if (
_vertScrollBar
.Enabled)
4538
int oldVertScrollBarValue =
_vertScrollBar
.Value;
4539
int oldThumbHeight = Math.Max(((
_vertScrollBar
.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) *
_vertScrollBar
.LargeChange) /
_vertScrollBar
.Maximum, 8);
4541
_vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
4542
Debug.Assert(
_vertScrollBar
.Maximum > 0);
4543
_vertScrollBar
.Value = ComputeHeightOfScrolledOffRows();
4544
_vertScrollBar
.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight;
4545
VerticalScrollingOffset =
_vertScrollBar
.Value;
4547
if (
_vertScrollBar
.Visible
4550
(
_vertScrollBar
.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) *
_vertScrollBar
.LargeChange /
_vertScrollBar
.Maximum,
4554
_vertScrollBar
.Invalidate();
4557
Debug.Assert(VerticalScrollingOffset ==
_vertScrollBar
.Value);
5592
_vertScrollBar
?.Dispose();
8569
Debug.Assert(!
_vertScrollBar
.Enabled
8570
|| !
_vertScrollBar
.Visible
8571
||
_vertScrollBar
.Maximum == visibleRowsHeight - frozenVisibleRowsHeight);
8985
minimumWidth +=
_vertScrollBar
.Width;
9296
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible &&
_vertScrollBar
.Bounds.Contains(x, y))
10028
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
10030
_vertScrollBar
.Invalidate();
10166
int vertScrollBarWidth =
_vertScrollBar
.Width = SystemInformation.VerticalScrollBarWidth;
10302
rightToLeftInternal ? _layout.Data.X -
_vertScrollBar
.Width : _layout.Data.Right,
10304
_vertScrollBar
.Width,
10354
_vertScrollBar
.Minimum = 0;
10355
_vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
10356
Debug.Assert(
_vertScrollBar
.Maximum > 0);
10357
_vertScrollBar
.Value = ComputeHeightOfScrolledOffRows();
10358
_vertScrollBar
.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight;
10359
_vertScrollBar
.Bounds = new Rectangle(
10360
rightToLeftInternal ? _layout.Data.X -
_vertScrollBar
.Width : _layout.Data.Right,
10362
_vertScrollBar
.Width,
10364
_vertScrollBar
.Enabled = Enabled;
10365
_vertScrollBar
.Visible = true;
10366
_vertScrollBar
.Invalidate();
10368
VerticalScrollingOffset =
_vertScrollBar
.Value;
10372
_vertScrollBar
.Visible = false;
10375
_vertScrollBar
.Enabled = false;
10376
_vertScrollBar
.Minimum = 0;
10377
_vertScrollBar
.Maximum = 1;
10378
_vertScrollBar
.LargeChange = 1;
10379
_vertScrollBar
.Value = 0;
14979
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
14983
_vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
14985
_vertScrollBar
.Enabled = true;
16464
ScrollBar sb = (verticalScroll ?
_vertScrollBar
: _horizScrollBar);
16516
VerticalOffset -= fullNotches *
_vertScrollBar
.LargeChange;
16517
if (Math.Abs(VerticalOffset - originalVerticalOffset) >= Math.Abs(fullNotches *
_vertScrollBar
.LargeChange))
16562
while (
_vertScrollBar
.Value !=
_vertScrollBar
.Minimum && absScrollBands > 0)
16568
if (
_vertScrollBar
.Value ==
_vertScrollBar
.Minimum)
16583
&&
_vertScrollBar
.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16584
<=
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
16594
if (
_vertScrollBar
.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16595
>
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
26321
if (
_vertScrollBar
.Enabled)
26323
_vertScrollBar
.Value = VerticalScrollingOffset;
28429
if (
_vertScrollBar
.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
28430
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
28441
if (
_vertScrollBar
.Value !=
_vertScrollBar
.Minimum)
28454
VerticalOffset += Math.Max(firstDisplayedScrollingRowHeight,
_vertScrollBar
.LargeChange);
28461
VerticalOffset -=
_vertScrollBar
.LargeChange;
28470
if (se.NewValue >=
_vertScrollBar
.Maximum -
_vertScrollBar
.LargeChange)
28473
VerticalOffset =
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight);
28848
if (
_vertScrollBar
is not null)
28850
_vertScrollBar
.MouseEnter -= ScrollBar_MouseEnter;
28851
_vertScrollBar
.MouseLeave -= ScrollBar_MouseLeave;
29946
if (
_vertScrollBar
is not null)
29948
_vertScrollBar
.MouseEnter += ScrollBar_MouseEnter;
29949
_vertScrollBar
.MouseLeave += ScrollBar_MouseLeave;