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)
101if (owner._vertScrollBar.Visible) 105return owner._vertScrollBar.AccessibilityObject; 132if (owner._vertScrollBar.Visible)
System\Windows\Forms\Controls\DataGridView\DataGridView.ControlCollection.cs (2)
37if (value != _owner._horizScrollBar && value != _owner._vertScrollBar && value != _owner._editingPanel) 52if (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; 473Controls.Add(_vertScrollBar); 2128if (_vertScrollBar is not null && _vertScrollBar.Visible) 2130rectDisplay.Width -= _vertScrollBar.Width; 2133rectDisplay.X = _vertScrollBar.Width; 2203if (_vertScrollBar is not null && _vertScrollBar.Visible) 2205if (_vertScrollBar.Bounds.Contains(ptMouse)) 4096if (value > _vertScrollBar.Maximum - fittingTrailingScrollingRowsHeight) 4098value = _vertScrollBar.Maximum - fittingTrailingScrollingRowsHeight; 4107if (_vertScrollBar.Enabled) 4109_vertScrollBar.Value = value; 4116protected ScrollBar VerticalScrollBar => _vertScrollBar;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (80)
4668if (_vertScrollBar.Enabled) 4672int oldVertScrollBarValue = _vertScrollBar.Value; 4673int oldThumbHeight = Math.Max(((_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange) / _vertScrollBar.Maximum, 8); 4675_vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 4676Debug.Assert(_vertScrollBar.Maximum > 0); 4677_vertScrollBar.Value = ComputeHeightOfScrolledOffRows(); 4678_vertScrollBar.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight; 4679VerticalScrollingOffset = _vertScrollBar.Value; 4681if (_vertScrollBar.Visible 4684(_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange / _vertScrollBar.Maximum, 4688_vertScrollBar.Invalidate(); 4691Debug.Assert(VerticalScrollingOffset == _vertScrollBar.Value); 5751_vertScrollBar?.Dispose(); 8834Debug.Assert(!_vertScrollBar.Enabled 8835|| !_vertScrollBar.Visible 8836|| _vertScrollBar.Maximum == visibleRowsHeight - frozenVisibleRowsHeight); 9287minimumWidth += _vertScrollBar.Width; 9616if (_vertScrollBar is not null && _vertScrollBar.Visible && _vertScrollBar.Bounds.Contains(x, y)) 10445if (_vertScrollBar is not null && _vertScrollBar.Visible) 10447_vertScrollBar.Invalidate(); 10583int vertScrollBarWidth = _vertScrollBar.Width = SystemInformation.VerticalScrollBarWidth; 10726rightToLeftInternal ? _layout.Data.X - _vertScrollBar.Width : _layout.Data.Right, 10728_vertScrollBar.Width, 10778_vertScrollBar.Minimum = 0; 10779_vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 10780Debug.Assert(_vertScrollBar.Maximum > 0); 10781_vertScrollBar.Value = ComputeHeightOfScrolledOffRows(); 10782_vertScrollBar.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight; 10783_vertScrollBar.Bounds = new Rectangle( 10784rightToLeftInternal ? _layout.Data.X - _vertScrollBar.Width : _layout.Data.Right, 10786_vertScrollBar.Width, 10788_vertScrollBar.Enabled = Enabled; 10789_vertScrollBar.Visible = true; 10790_vertScrollBar.Invalidate(); 10792VerticalScrollingOffset = _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; 15389if (_vertScrollBar is not null && _vertScrollBar.Visible) 15393_vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 15395_vertScrollBar.Enabled = true; 16870ScrollBar sb = (verticalScroll ? _vertScrollBar : _horizScrollBar); 16925VerticalOffset -= fullNotches * _vertScrollBar.LargeChange; 16926if (Math.Abs(VerticalOffset - originalVerticalOffset) >= Math.Abs(fullNotches * _vertScrollBar.LargeChange)) 16971while (_vertScrollBar.Value != _vertScrollBar.Minimum && absScrollBands > 0) 16977if (_vertScrollBar.Value == _vertScrollBar.Minimum) 16992&& _vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16993<= _vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 17003if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 17004> _vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 26803if (_vertScrollBar.Enabled) 26805_vertScrollBar.Value = VerticalScrollingOffset; 28911if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 28912_vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 28923if (_vertScrollBar.Value != _vertScrollBar.Minimum) 28936VerticalOffset += Math.Max(firstDisplayedScrollingRowHeight, _vertScrollBar.LargeChange); 28943VerticalOffset -= _vertScrollBar.LargeChange; 28952if (se.NewValue >= _vertScrollBar.Maximum - _vertScrollBar.LargeChange) 28955VerticalOffset = _vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight); 29330if (_vertScrollBar is not null) 29332_vertScrollBar.MouseEnter -= ScrollBar_MouseEnter; 29333_vertScrollBar.MouseLeave -= ScrollBar_MouseLeave; 30444if (_vertScrollBar is not null) 30446_vertScrollBar.MouseEnter += ScrollBar_MouseEnter; 30447_vertScrollBar.MouseLeave += ScrollBar_MouseLeave;