1 write to _vertScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5752
_vertScrollBar
= null!;
104 references to _vertScrollBar
System.Windows.Forms (104)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (3)
101
if (owner.
_vertScrollBar
.Visible)
105
return owner.
_vertScrollBar
.AccessibilityObject;
132
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)
468
_vertScrollBar
.Top = 0;
469
_vertScrollBar
.AccessibleName = SR.DataGridView_AccVerticalScrollBarAccName;
470
_vertScrollBar
.Left = ClientRectangle.Width -
_vertScrollBar
.Width;
471
_vertScrollBar
.Visible = false;
472
_vertScrollBar
.Scroll += DataGridViewVScrolled;
473
Controls.Add(
_vertScrollBar
);
2128
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
2130
rectDisplay.Width -=
_vertScrollBar
.Width;
2133
rectDisplay.X =
_vertScrollBar
.Width;
2203
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
2205
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)
4668
if (
_vertScrollBar
.Enabled)
4672
int oldVertScrollBarValue =
_vertScrollBar
.Value;
4673
int oldThumbHeight = Math.Max(((
_vertScrollBar
.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) *
_vertScrollBar
.LargeChange) /
_vertScrollBar
.Maximum, 8);
4675
_vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
4676
Debug.Assert(
_vertScrollBar
.Maximum > 0);
4677
_vertScrollBar
.Value = ComputeHeightOfScrolledOffRows();
4678
_vertScrollBar
.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight;
4679
VerticalScrollingOffset =
_vertScrollBar
.Value;
4681
if (
_vertScrollBar
.Visible
4684
(
_vertScrollBar
.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) *
_vertScrollBar
.LargeChange /
_vertScrollBar
.Maximum,
4688
_vertScrollBar
.Invalidate();
4691
Debug.Assert(VerticalScrollingOffset ==
_vertScrollBar
.Value);
5751
_vertScrollBar
?.Dispose();
8834
Debug.Assert(!
_vertScrollBar
.Enabled
8835
|| !
_vertScrollBar
.Visible
8836
||
_vertScrollBar
.Maximum == visibleRowsHeight - frozenVisibleRowsHeight);
9287
minimumWidth +=
_vertScrollBar
.Width;
9616
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible &&
_vertScrollBar
.Bounds.Contains(x, y))
10445
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
10447
_vertScrollBar
.Invalidate();
10583
int vertScrollBarWidth =
_vertScrollBar
.Width = SystemInformation.VerticalScrollBarWidth;
10726
rightToLeftInternal ? _layout.Data.X -
_vertScrollBar
.Width : _layout.Data.Right,
10728
_vertScrollBar
.Width,
10778
_vertScrollBar
.Minimum = 0;
10779
_vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
10780
Debug.Assert(
_vertScrollBar
.Maximum > 0);
10781
_vertScrollBar
.Value = ComputeHeightOfScrolledOffRows();
10782
_vertScrollBar
.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight;
10783
_vertScrollBar
.Bounds = new Rectangle(
10784
rightToLeftInternal ? _layout.Data.X -
_vertScrollBar
.Width : _layout.Data.Right,
10786
_vertScrollBar
.Width,
10788
_vertScrollBar
.Enabled = Enabled;
10789
_vertScrollBar
.Visible = true;
10790
_vertScrollBar
.Invalidate();
10792
VerticalScrollingOffset =
_vertScrollBar
.Value;
10796
_vertScrollBar
.Visible = false;
10799
_vertScrollBar
.Enabled = false;
10800
_vertScrollBar
.Minimum = 0;
10801
_vertScrollBar
.Maximum = 1;
10802
_vertScrollBar
.LargeChange = 1;
10803
_vertScrollBar
.Value = 0;
15389
if (
_vertScrollBar
is not null &&
_vertScrollBar
.Visible)
15393
_vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
15395
_vertScrollBar
.Enabled = true;
16870
ScrollBar sb = (verticalScroll ?
_vertScrollBar
: _horizScrollBar);
16925
VerticalOffset -= fullNotches *
_vertScrollBar
.LargeChange;
16926
if (Math.Abs(VerticalOffset - originalVerticalOffset) >= Math.Abs(fullNotches *
_vertScrollBar
.LargeChange))
16971
while (
_vertScrollBar
.Value !=
_vertScrollBar
.Minimum && absScrollBands > 0)
16977
if (
_vertScrollBar
.Value ==
_vertScrollBar
.Minimum)
16992
&&
_vertScrollBar
.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
16993
<=
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
17003
if (
_vertScrollBar
.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow)
17004
>
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
26803
if (
_vertScrollBar
.Enabled)
26805
_vertScrollBar
.Value = VerticalScrollingOffset;
28911
if (
_vertScrollBar
.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <=
28912
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
28923
if (
_vertScrollBar
.Value !=
_vertScrollBar
.Minimum)
28936
VerticalOffset += Math.Max(firstDisplayedScrollingRowHeight,
_vertScrollBar
.LargeChange);
28943
VerticalOffset -=
_vertScrollBar
.LargeChange;
28952
if (se.NewValue >=
_vertScrollBar
.Maximum -
_vertScrollBar
.LargeChange)
28955
VerticalOffset =
_vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight);
29330
if (
_vertScrollBar
is not null)
29332
_vertScrollBar
.MouseEnter -= ScrollBar_MouseEnter;
29333
_vertScrollBar
.MouseLeave -= ScrollBar_MouseLeave;
30444
if (
_vertScrollBar
is not null)
30446
_vertScrollBar
.MouseEnter += ScrollBar_MouseEnter;
30447
_vertScrollBar
.MouseLeave += ScrollBar_MouseLeave;