1 write to _horizScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5596_horizScrollBar = null!;
75 references to _horizScrollBar
System.Windows.Forms (75)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (3)
88if (owner._horizScrollBar.Visible) 92return owner._horizScrollBar.AccessibilityObject; 126if (owner._horizScrollBar.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)
456_horizScrollBar.RightToLeft = RightToLeft.Inherit; 457_horizScrollBar.AccessibleName = SR.DataGridView_AccHorizontalScrollBarAccName; 458_horizScrollBar.Top = ClientRectangle.Height - _horizScrollBar.Height; 459_horizScrollBar.Left = 0; 460_horizScrollBar.Visible = false; 461_horizScrollBar.Scroll += DataGridViewHScrolled; 462Controls.Add(_horizScrollBar); 2130if (_horizScrollBar is not null && _horizScrollBar.Visible) 2132rectDisplay.Height -= _horizScrollBar.Height; 2218if (_horizScrollBar is not null && _horizScrollBar.Visible) 2220return _horizScrollBar.Bounds.Contains(ptMouse); 2696if (_horizScrollBar.Enabled) 2698_horizScrollBar.Value = value; 2783protected ScrollBar HorizontalScrollBar => _horizScrollBar; 2785internal int HorizontalScrollBarHeight => _horizScrollBar.Height; 2787internal bool HorizontalScrollBarVisible => _horizScrollBar.Visible;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (51)
5595_horizScrollBar?.Dispose(); 9002minimumHeight += _horizScrollBar.Height; 9290if (_horizScrollBar is not null && _horizScrollBar.Visible && _horizScrollBar.Bounds.Contains(x, y)) 10023if (_horizScrollBar is not null && _horizScrollBar.Visible) 10025_horizScrollBar.Invalidate(); 10165int horizScrollBarHeight = _horizScrollBar.Height = SystemInformation.HorizontalScrollBarHeight; 10305_horizScrollBar.Height); 10312_horizScrollBar.Minimum = 0; 10313_horizScrollBar.Maximum = totalVisibleWidth - totalVisibleFrozenWidth; 10314Debug.Assert(_horizScrollBar.Maximum > 0); 10315_horizScrollBar.SmallChange = 1; 10316_horizScrollBar.LargeChange = Math.Max(totalVisibleWidth - totalVisibleFrozenWidth - widthNotVisible, 0); 10317_horizScrollBar.Enabled = Enabled; 10318_horizScrollBar.Bounds = new Rectangle( 10322_horizScrollBar.Height); 10323_horizScrollBar.Visible = true; 10324_horizScrollBar.Invalidate(); 10328_horizScrollBar.Visible = false; 10331_horizScrollBar.Enabled = false; 10332_horizScrollBar.Minimum = 0; 10333_horizScrollBar.Maximum = 1; 10334_horizScrollBar.SmallChange = 1; 10335_horizScrollBar.LargeChange = 1; 10336_horizScrollBar.Value = 0; 14348if (_horizScrollBar.Enabled) 14350_horizScrollBar.Value = _horizontalOffset; 14988if (_horizScrollBar is not null && _horizScrollBar.Visible) 14990_horizScrollBar.Enabled = true; 16464ScrollBar sb = (verticalScroll ? _vertScrollBar : _horizScrollBar); 16529HorizontalOffset -= fullNotches * _horizScrollBar.LargeChange; 16530if (Math.Abs(HorizontalOffset - originalHorizontalOffset) >= Math.Abs(fullNotches * _horizScrollBar.LargeChange)) 16610extremeScrollBarValue = _horizScrollBar.Minimum; 16615extremeScrollBarValue = _horizScrollBar.Maximum; 16620while (_horizScrollBar.Value != extremeScrollBarValue && absScrollBands > 0) 16626if (_horizScrollBar.Value == extremeScrollBarValue) 17169if (_horizScrollBar.Enabled) 17171int newHorizontalOffset = _horizScrollBar.Maximum - _horizScrollBar.LargeChange - dataGridViewColumn.Thickness; 17172if (newHorizontalOffset >= 0 && newHorizontalOffset < _horizScrollBar.Value) 17190if (_horizScrollBar.Enabled) 17192_horizScrollBar.Value = _horizontalOffset; 28842if (_horizScrollBar is not null) 28844_horizScrollBar.MouseEnter -= ScrollBar_MouseEnter; 28845_horizScrollBar.MouseLeave -= ScrollBar_MouseLeave; 29940if (_horizScrollBar is not null) 29942_horizScrollBar.MouseEnter += ScrollBar_MouseEnter; 29943_horizScrollBar.MouseLeave += ScrollBar_MouseLeave;