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)
100if (owner._vertScrollBar.Visible) 104return owner._vertScrollBar.AccessibilityObject; 131if (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)
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; 469Controls.Add(_vertScrollBar); 2136if (_vertScrollBar is not null && _vertScrollBar.Visible) 2138rectDisplay.Width -= _vertScrollBar.Width; 2141rectDisplay.X = _vertScrollBar.Width; 2211if (_vertScrollBar is not null && _vertScrollBar.Visible) 2213if (_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)
4537if (_vertScrollBar.Enabled) 4541int oldVertScrollBarValue = _vertScrollBar.Value; 4542int oldThumbHeight = Math.Max(((_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange) / _vertScrollBar.Maximum, 8); 4544_vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 4545Debug.Assert(_vertScrollBar.Maximum > 0); 4546_vertScrollBar.Value = ComputeHeightOfScrolledOffRows(); 4547_vertScrollBar.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight; 4548VerticalScrollingOffset = _vertScrollBar.Value; 4550if (_vertScrollBar.Visible 4553(_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange / _vertScrollBar.Maximum, 4557_vertScrollBar.Invalidate(); 4560Debug.Assert(VerticalScrollingOffset == _vertScrollBar.Value); 5595_vertScrollBar?.Dispose(); 8572Debug.Assert(!_vertScrollBar.Enabled 8573|| !_vertScrollBar.Visible 8574|| _vertScrollBar.Maximum == visibleRowsHeight - frozenVisibleRowsHeight); 8988minimumWidth += _vertScrollBar.Width; 9299if (_vertScrollBar is not null && _vertScrollBar.Visible && _vertScrollBar.Bounds.Contains(x, y)) 10031if (_vertScrollBar is not null && _vertScrollBar.Visible) 10033_vertScrollBar.Invalidate(); 10169int vertScrollBarWidth = _vertScrollBar.Width = SystemInformation.VerticalScrollBarWidth; 10305rightToLeftInternal ? _layout.Data.X - _vertScrollBar.Width : _layout.Data.Right, 10307_vertScrollBar.Width, 10357_vertScrollBar.Minimum = 0; 10358_vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 10359Debug.Assert(_vertScrollBar.Maximum > 0); 10360_vertScrollBar.Value = ComputeHeightOfScrolledOffRows(); 10361_vertScrollBar.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight; 10362_vertScrollBar.Bounds = new Rectangle( 10363rightToLeftInternal ? _layout.Data.X - _vertScrollBar.Width : _layout.Data.Right, 10365_vertScrollBar.Width, 10367_vertScrollBar.Enabled = Enabled; 10368_vertScrollBar.Visible = true; 10369_vertScrollBar.Invalidate(); 10371VerticalScrollingOffset = _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; 14982if (_vertScrollBar is not null && _vertScrollBar.Visible) 14986_vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 14988_vertScrollBar.Enabled = true; 16467ScrollBar sb = (verticalScroll ? _vertScrollBar : _horizScrollBar); 16519VerticalOffset -= fullNotches * _vertScrollBar.LargeChange; 16520if (Math.Abs(VerticalOffset - originalVerticalOffset) >= Math.Abs(fullNotches * _vertScrollBar.LargeChange)) 16565while (_vertScrollBar.Value != _vertScrollBar.Minimum && absScrollBands > 0) 16571if (_vertScrollBar.Value == _vertScrollBar.Minimum) 16586&& _vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16587<= _vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 16597if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16598> _vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 26324if (_vertScrollBar.Enabled) 26326_vertScrollBar.Value = VerticalScrollingOffset; 28432if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 28433_vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 28444if (_vertScrollBar.Value != _vertScrollBar.Minimum) 28457VerticalOffset += Math.Max(firstDisplayedScrollingRowHeight, _vertScrollBar.LargeChange); 28464VerticalOffset -= _vertScrollBar.LargeChange; 28473if (se.NewValue >= _vertScrollBar.Maximum - _vertScrollBar.LargeChange) 28476VerticalOffset = _vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight); 28851if (_vertScrollBar is not null) 28853_vertScrollBar.MouseEnter -= ScrollBar_MouseEnter; 28854_vertScrollBar.MouseLeave -= ScrollBar_MouseLeave; 29949if (_vertScrollBar is not null) 29951_vertScrollBar.MouseEnter += ScrollBar_MouseEnter; 29952_vertScrollBar.MouseLeave += ScrollBar_MouseLeave;