1 write to _horizScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5602_horizScrollBar = null!;
75 references to _horizScrollBar
System.Windows.Forms (75)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (3)
89if (owner._horizScrollBar.Visible) 93return owner._horizScrollBar.AccessibilityObject; 127if (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)
460_horizScrollBar.RightToLeft = RightToLeft.Inherit; 461_horizScrollBar.AccessibleName = SR.DataGridView_AccHorizontalScrollBarAccName; 462_horizScrollBar.Top = ClientRectangle.Height - _horizScrollBar.Height; 463_horizScrollBar.Left = 0; 464_horizScrollBar.Visible = false; 465_horizScrollBar.Scroll += DataGridViewHScrolled; 466Controls.Add(_horizScrollBar); 2123if (_horizScrollBar is not null && _horizScrollBar.Visible) 2125rectDisplay.Height -= _horizScrollBar.Height; 2211if (_horizScrollBar is not null && _horizScrollBar.Visible) 2213return _horizScrollBar.Bounds.Contains(ptMouse); 2689if (_horizScrollBar.Enabled) 2691_horizScrollBar.Value = value; 2776protected ScrollBar HorizontalScrollBar => _horizScrollBar; 2778internal int HorizontalScrollBarHeight => _horizScrollBar.Height; 2780internal bool HorizontalScrollBarVisible => _horizScrollBar.Visible;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (51)
5601_horizScrollBar?.Dispose(); 9007minimumHeight += _horizScrollBar.Height; 9295if (_horizScrollBar is not null && _horizScrollBar.Visible && _horizScrollBar.Bounds.Contains(x, y)) 10028if (_horizScrollBar is not null && _horizScrollBar.Visible) 10030_horizScrollBar.Invalidate(); 10170int horizScrollBarHeight = _horizScrollBar.Height = SystemInformation.HorizontalScrollBarHeight; 10310_horizScrollBar.Height); 10317_horizScrollBar.Minimum = 0; 10318_horizScrollBar.Maximum = totalVisibleWidth - totalVisibleFrozenWidth; 10319Debug.Assert(_horizScrollBar.Maximum > 0); 10320_horizScrollBar.SmallChange = 1; 10321_horizScrollBar.LargeChange = Math.Max(totalVisibleWidth - totalVisibleFrozenWidth - widthNotVisible, 0); 10322_horizScrollBar.Enabled = Enabled; 10323_horizScrollBar.Bounds = new Rectangle( 10327_horizScrollBar.Height); 10328_horizScrollBar.Visible = true; 10329_horizScrollBar.Invalidate(); 10333_horizScrollBar.Visible = false; 10336_horizScrollBar.Enabled = false; 10337_horizScrollBar.Minimum = 0; 10338_horizScrollBar.Maximum = 1; 10339_horizScrollBar.SmallChange = 1; 10340_horizScrollBar.LargeChange = 1; 10341_horizScrollBar.Value = 0; 14340if (_horizScrollBar.Enabled) 14342_horizScrollBar.Value = _horizontalOffset; 14979if (_horizScrollBar is not null && _horizScrollBar.Visible) 14981_horizScrollBar.Enabled = true; 16451ScrollBar sb = (verticalScroll ? _vertScrollBar : _horizScrollBar); 16519HorizontalOffset -= fullNotches * _horizScrollBar.LargeChange; 16520if (Math.Abs(HorizontalOffset - originalHorizontalOffset) >= Math.Abs(fullNotches * _horizScrollBar.LargeChange)) 16600extremeScrollBarValue = _horizScrollBar.Minimum; 16605extremeScrollBarValue = _horizScrollBar.Maximum; 16610while (_horizScrollBar.Value != extremeScrollBarValue && absScrollBands > 0) 16616if (_horizScrollBar.Value == extremeScrollBarValue) 17159if (_horizScrollBar.Enabled) 17161int newHorizontalOffset = _horizScrollBar.Maximum - _horizScrollBar.LargeChange - dataGridViewColumn.Thickness; 17162if (newHorizontalOffset >= 0 && newHorizontalOffset < _horizScrollBar.Value) 17180if (_horizScrollBar.Enabled) 17182_horizScrollBar.Value = _horizontalOffset; 28834if (_horizScrollBar is not null) 28836_horizScrollBar.MouseEnter -= ScrollBar_MouseEnter; 28837_horizScrollBar.MouseLeave -= ScrollBar_MouseLeave; 29935if (_horizScrollBar is not null) 29937_horizScrollBar.MouseEnter += ScrollBar_MouseEnter; 29938_horizScrollBar.MouseLeave += ScrollBar_MouseLeave;