1 write to _vertScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5652
_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)
469
_vertScrollBar
.Top = 0;
470
_vertScrollBar
.AccessibleName = SR.DataGridView_AccVerticalScrollBarAccName;
471
_vertScrollBar
.Left = ClientRectangle.Width -
_vertScrollBar
.Width;
472
_vertScrollBar
.Visible = false;
473
_vertScrollBar
.Scroll += DataGridViewVScrolled;
474
Controls.Add(
_vertScrollBar
);
2140
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
2142
rectDisplay.Width -=
_vertScrollBar
.Width;
2145
rectDisplay.X =
_vertScrollBar
.Width;
2215
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
2217
if (
_vertScrollBar
.Bounds.Contains(ptMouse))
4100
if (value >
_vertScrollBar
.Maximum - fittingTrailingScrollingRowsHeight)
4102
value =
_vertScrollBar
.Maximum - fittingTrailingScrollingRowsHeight;
4111
if (
_vertScrollBar
.Enabled)
4113
_vertScrollBar
.Value = value;
4120
protected ScrollBar VerticalScrollBar =>
_vertScrollBar
;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (80)
4593
if (
_vertScrollBar
.Enabled)
4597
int oldVertScrollBarValue =
_vertScrollBar
.Value;
4598
int oldThumbHeight = Math.Max(((
_vertScrollBar
.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) *
_vertScrollBar
.LargeChange) /
_vertScrollBar
.Maximum, 8);
4600
_vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
4601
Debug.Assert(
_vertScrollBar
.Maximum > 0);
4602
_vertScrollBar
.Value = ComputeHeightOfScrolledOffRows();
4603
_vertScrollBar
.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight;
4604
VerticalScrollingOffset =
_vertScrollBar
.Value;
4606
if (
_vertScrollBar
.Visible
4609
(
_vertScrollBar
.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) *
_vertScrollBar
.LargeChange /
_vertScrollBar
.Maximum,
4613
_vertScrollBar
.Invalidate();
4616
Debug.Assert(VerticalScrollingOffset ==
_vertScrollBar
.Value);
5651
_vertScrollBar
?.Dispose();
8628
Debug.Assert(!
_vertScrollBar
.Enabled
8629
|| !
_vertScrollBar
.Visible
8630
||
_vertScrollBar
.Maximum == visibleRowsHeight - frozenVisibleRowsHeight);
9044
minimumWidth +=
_vertScrollBar
.Width;
9355
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible &&
_vertScrollBar
.Bounds.Contains(x, y))
10087
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
10089
_vertScrollBar
.Invalidate();
10225
int vertScrollBarWidth =
_vertScrollBar
.Width = SystemInformation.VerticalScrollBarWidth;
10361
rightToLeftInternal ? _layout.Data.X -
_vertScrollBar
.Width : _layout.Data.Right,
10363
_vertScrollBar
.Width,
10413
_vertScrollBar
.Minimum = 0;
10414
_vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
10415
Debug.Assert(
_vertScrollBar
.Maximum > 0);
10416
_vertScrollBar
.Value = ComputeHeightOfScrolledOffRows();
10417
_vertScrollBar
.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight;
10418
_vertScrollBar
.Bounds = new Rectangle(
10419
rightToLeftInternal ? _layout.Data.X -
_vertScrollBar
.Width : _layout.Data.Right,
10421
_vertScrollBar
.Width,
10423
_vertScrollBar
.Enabled = Enabled;
10424
_vertScrollBar
.Visible = true;
10425
_vertScrollBar
.Invalidate();
10427
VerticalScrollingOffset =
_vertScrollBar
.Value;
10431
_vertScrollBar
.Visible = false;
10434
_vertScrollBar
.Enabled = false;
10435
_vertScrollBar
.Minimum = 0;
10436
_vertScrollBar
.Maximum = 1;
10437
_vertScrollBar
.LargeChange = 1;
10438
_vertScrollBar
.Value = 0;
15038
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
15042
_vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
15044
_vertScrollBar
.Enabled = true;
16529
ScrollBar sb = (verticalScroll ?
_vertScrollBar
: _horizScrollBar);
16581
VerticalOffset -= fullNotches *
_vertScrollBar
.LargeChange;
16582
if (Math.Abs(VerticalOffset - originalVerticalOffset) >= Math.Abs(fullNotches *
_vertScrollBar
.LargeChange))
16627
while (
_vertScrollBar
.Value !=
_vertScrollBar
.Minimum && absScrollBands > 0)
16633
if (
_vertScrollBar
.Value ==
_vertScrollBar
.Minimum)
16648
&&
_vertScrollBar
.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16649
<=
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
16659
if (
_vertScrollBar
.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16660
>
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
26394
if (
_vertScrollBar
.Enabled)
26396
_vertScrollBar
.Value = VerticalScrollingOffset;
28502
if (
_vertScrollBar
.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
28503
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
28514
if (
_vertScrollBar
.Value !=
_vertScrollBar
.Minimum)
28527
VerticalOffset += Math.Max(firstDisplayedScrollingRowHeight,
_vertScrollBar
.LargeChange);
28534
VerticalOffset -=
_vertScrollBar
.LargeChange;
28543
if (se.NewValue >=
_vertScrollBar
.Maximum -
_vertScrollBar
.LargeChange)
28546
VerticalOffset =
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight);
28921
if (
_vertScrollBar
is not null)
28923
_vertScrollBar
.MouseEnter -= ScrollBar_MouseEnter;
28924
_vertScrollBar
.MouseLeave -= ScrollBar_MouseLeave;
30019
if (
_vertScrollBar
is not null)
30021
_vertScrollBar
.MouseEnter += ScrollBar_MouseEnter;
30022
_vertScrollBar
.MouseLeave += ScrollBar_MouseLeave;