1 write to _horizScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5599_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)
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)
5598_horizScrollBar?.Dispose(); 9005minimumHeight += _horizScrollBar.Height; 9293if (_horizScrollBar is not null && _horizScrollBar.Visible && _horizScrollBar.Bounds.Contains(x, y)) 10026if (_horizScrollBar is not null && _horizScrollBar.Visible) 10028_horizScrollBar.Invalidate(); 10168int horizScrollBarHeight = _horizScrollBar.Height = SystemInformation.HorizontalScrollBarHeight; 10308_horizScrollBar.Height); 10315_horizScrollBar.Minimum = 0; 10316_horizScrollBar.Maximum = totalVisibleWidth - totalVisibleFrozenWidth; 10317Debug.Assert(_horizScrollBar.Maximum > 0); 10318_horizScrollBar.SmallChange = 1; 10319_horizScrollBar.LargeChange = Math.Max(totalVisibleWidth - totalVisibleFrozenWidth - widthNotVisible, 0); 10320_horizScrollBar.Enabled = Enabled; 10321_horizScrollBar.Bounds = new Rectangle( 10325_horizScrollBar.Height); 10326_horizScrollBar.Visible = true; 10327_horizScrollBar.Invalidate(); 10331_horizScrollBar.Visible = false; 10334_horizScrollBar.Enabled = false; 10335_horizScrollBar.Minimum = 0; 10336_horizScrollBar.Maximum = 1; 10337_horizScrollBar.SmallChange = 1; 10338_horizScrollBar.LargeChange = 1; 10339_horizScrollBar.Value = 0; 14351if (_horizScrollBar.Enabled) 14353_horizScrollBar.Value = _horizontalOffset; 14991if (_horizScrollBar is not null && _horizScrollBar.Visible) 14993_horizScrollBar.Enabled = true; 16467ScrollBar sb = (verticalScroll ? _vertScrollBar : _horizScrollBar); 16535HorizontalOffset -= fullNotches * _horizScrollBar.LargeChange; 16536if (Math.Abs(HorizontalOffset - originalHorizontalOffset) >= Math.Abs(fullNotches * _horizScrollBar.LargeChange)) 16616extremeScrollBarValue = _horizScrollBar.Minimum; 16621extremeScrollBarValue = _horizScrollBar.Maximum; 16626while (_horizScrollBar.Value != extremeScrollBarValue && absScrollBands > 0) 16632if (_horizScrollBar.Value == extremeScrollBarValue) 17175if (_horizScrollBar.Enabled) 17177int newHorizontalOffset = _horizScrollBar.Maximum - _horizScrollBar.LargeChange - dataGridViewColumn.Thickness; 17178if (newHorizontalOffset >= 0 && newHorizontalOffset < _horizScrollBar.Value) 17196if (_horizScrollBar.Enabled) 17198_horizScrollBar.Value = _horizontalOffset; 28850if (_horizScrollBar is not null) 28852_horizScrollBar.MouseEnter -= ScrollBar_MouseEnter; 28853_horizScrollBar.MouseLeave -= ScrollBar_MouseLeave; 29951if (_horizScrollBar is not null) 29953_horizScrollBar.MouseEnter += ScrollBar_MouseEnter; 29954_horizScrollBar.MouseLeave += ScrollBar_MouseLeave;