1 write to _vertScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5593_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); 2135if (_vertScrollBar is not null && _vertScrollBar.Visible) 2137rectDisplay.Width -= _vertScrollBar.Width; 2140rectDisplay.X = _vertScrollBar.Width; 2210if (_vertScrollBar is not null && _vertScrollBar.Visible) 2212if (_vertScrollBar.Bounds.Contains(ptMouse)) 4095if (value > _vertScrollBar.Maximum - fittingTrailingScrollingRowsHeight) 4097value = _vertScrollBar.Maximum - fittingTrailingScrollingRowsHeight; 4106if (_vertScrollBar.Enabled) 4108_vertScrollBar.Value = value; 4115protected ScrollBar VerticalScrollBar => _vertScrollBar;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (80)
4534if (_vertScrollBar.Enabled) 4538int oldVertScrollBarValue = _vertScrollBar.Value; 4539int oldThumbHeight = Math.Max(((_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange) / _vertScrollBar.Maximum, 8); 4541_vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 4542Debug.Assert(_vertScrollBar.Maximum > 0); 4543_vertScrollBar.Value = ComputeHeightOfScrolledOffRows(); 4544_vertScrollBar.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight; 4545VerticalScrollingOffset = _vertScrollBar.Value; 4547if (_vertScrollBar.Visible 4550(_vertScrollBar.Height - 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange / _vertScrollBar.Maximum, 4554_vertScrollBar.Invalidate(); 4557Debug.Assert(VerticalScrollingOffset == _vertScrollBar.Value); 5592_vertScrollBar?.Dispose(); 8569Debug.Assert(!_vertScrollBar.Enabled 8570|| !_vertScrollBar.Visible 8571|| _vertScrollBar.Maximum == visibleRowsHeight - frozenVisibleRowsHeight); 8985minimumWidth += _vertScrollBar.Width; 9296if (_vertScrollBar is not null && _vertScrollBar.Visible && _vertScrollBar.Bounds.Contains(x, y)) 10028if (_vertScrollBar is not null && _vertScrollBar.Visible) 10030_vertScrollBar.Invalidate(); 10166int vertScrollBarWidth = _vertScrollBar.Width = SystemInformation.VerticalScrollBarWidth; 10302rightToLeftInternal ? _layout.Data.X - _vertScrollBar.Width : _layout.Data.Right, 10304_vertScrollBar.Width, 10354_vertScrollBar.Minimum = 0; 10355_vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 10356Debug.Assert(_vertScrollBar.Maximum > 0); 10357_vertScrollBar.Value = ComputeHeightOfScrolledOffRows(); 10358_vertScrollBar.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight; 10359_vertScrollBar.Bounds = new Rectangle( 10360rightToLeftInternal ? _layout.Data.X - _vertScrollBar.Width : _layout.Data.Right, 10362_vertScrollBar.Width, 10364_vertScrollBar.Enabled = Enabled; 10365_vertScrollBar.Visible = true; 10366_vertScrollBar.Invalidate(); 10368VerticalScrollingOffset = _vertScrollBar.Value; 10372_vertScrollBar.Visible = false; 10375_vertScrollBar.Enabled = false; 10376_vertScrollBar.Minimum = 0; 10377_vertScrollBar.Maximum = 1; 10378_vertScrollBar.LargeChange = 1; 10379_vertScrollBar.Value = 0; 14979if (_vertScrollBar is not null && _vertScrollBar.Visible) 14983_vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 14985_vertScrollBar.Enabled = true; 16464ScrollBar sb = (verticalScroll ? _vertScrollBar : _horizScrollBar); 16516VerticalOffset -= fullNotches * _vertScrollBar.LargeChange; 16517if (Math.Abs(VerticalOffset - originalVerticalOffset) >= Math.Abs(fullNotches * _vertScrollBar.LargeChange)) 16562while (_vertScrollBar.Value != _vertScrollBar.Minimum && absScrollBands > 0) 16568if (_vertScrollBar.Value == _vertScrollBar.Minimum) 16583&& _vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16584<= _vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 16594if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) 16595> _vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 26321if (_vertScrollBar.Enabled) 26323_vertScrollBar.Value = VerticalScrollingOffset; 28429if (_vertScrollBar.Value + Rows.SharedRow(DisplayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(DisplayedBandsInfo.FirstDisplayedScrollingRow) <= 28430_vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 28441if (_vertScrollBar.Value != _vertScrollBar.Minimum) 28454VerticalOffset += Math.Max(firstDisplayedScrollingRowHeight, _vertScrollBar.LargeChange); 28461VerticalOffset -= _vertScrollBar.LargeChange; 28470if (se.NewValue >= _vertScrollBar.Maximum - _vertScrollBar.LargeChange) 28473VerticalOffset = _vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight); 28848if (_vertScrollBar is not null) 28850_vertScrollBar.MouseEnter -= ScrollBar_MouseEnter; 28851_vertScrollBar.MouseLeave -= ScrollBar_MouseLeave; 29946if (_vertScrollBar is not null) 29948_vertScrollBar.MouseEnter += ScrollBar_MouseEnter; 29949_vertScrollBar.MouseLeave += ScrollBar_MouseLeave;