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