1 write to _horizScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5655_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)
461_horizScrollBar.RightToLeft = RightToLeft.Inherit; 462_horizScrollBar.AccessibleName = SR.DataGridView_AccHorizontalScrollBarAccName; 463_horizScrollBar.Top = ClientRectangle.Height - _horizScrollBar.Height; 464_horizScrollBar.Left = 0; 465_horizScrollBar.Visible = false; 466_horizScrollBar.Scroll += DataGridViewHScrolled; 467Controls.Add(_horizScrollBar); 2135if (_horizScrollBar is not null && _horizScrollBar.Visible) 2137rectDisplay.Height -= _horizScrollBar.Height; 2223if (_horizScrollBar is not null && _horizScrollBar.Visible) 2225return _horizScrollBar.Bounds.Contains(ptMouse); 2701if (_horizScrollBar.Enabled) 2703_horizScrollBar.Value = value; 2788protected ScrollBar HorizontalScrollBar => _horizScrollBar; 2790internal int HorizontalScrollBarHeight => _horizScrollBar.Height; 2792internal bool HorizontalScrollBarVisible => _horizScrollBar.Visible;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (51)
5654_horizScrollBar?.Dispose(); 9061minimumHeight += _horizScrollBar.Height; 9349if (_horizScrollBar is not null && _horizScrollBar.Visible && _horizScrollBar.Bounds.Contains(x, y)) 10082if (_horizScrollBar is not null && _horizScrollBar.Visible) 10084_horizScrollBar.Invalidate(); 10224int horizScrollBarHeight = _horizScrollBar.Height = SystemInformation.HorizontalScrollBarHeight; 10364_horizScrollBar.Height); 10371_horizScrollBar.Minimum = 0; 10372_horizScrollBar.Maximum = totalVisibleWidth - totalVisibleFrozenWidth; 10373Debug.Assert(_horizScrollBar.Maximum > 0); 10374_horizScrollBar.SmallChange = 1; 10375_horizScrollBar.LargeChange = Math.Max(totalVisibleWidth - totalVisibleFrozenWidth - widthNotVisible, 0); 10376_horizScrollBar.Enabled = Enabled; 10377_horizScrollBar.Bounds = new Rectangle( 10381_horizScrollBar.Height); 10382_horizScrollBar.Visible = true; 10383_horizScrollBar.Invalidate(); 10387_horizScrollBar.Visible = false; 10390_horizScrollBar.Enabled = false; 10391_horizScrollBar.Minimum = 0; 10392_horizScrollBar.Maximum = 1; 10393_horizScrollBar.SmallChange = 1; 10394_horizScrollBar.LargeChange = 1; 10395_horizScrollBar.Value = 0; 14407if (_horizScrollBar.Enabled) 14409_horizScrollBar.Value = _horizontalOffset; 15047if (_horizScrollBar is not null && _horizScrollBar.Visible) 15049_horizScrollBar.Enabled = true; 16529ScrollBar sb = (verticalScroll ? _vertScrollBar : _horizScrollBar); 16594HorizontalOffset -= fullNotches * _horizScrollBar.LargeChange; 16595if (Math.Abs(HorizontalOffset - originalHorizontalOffset) >= Math.Abs(fullNotches * _horizScrollBar.LargeChange)) 16675extremeScrollBarValue = _horizScrollBar.Minimum; 16680extremeScrollBarValue = _horizScrollBar.Maximum; 16685while (_horizScrollBar.Value != extremeScrollBarValue && absScrollBands > 0) 16691if (_horizScrollBar.Value == extremeScrollBarValue) 17234if (_horizScrollBar.Enabled) 17236int newHorizontalOffset = _horizScrollBar.Maximum - _horizScrollBar.LargeChange - dataGridViewColumn.Thickness; 17237if (newHorizontalOffset >= 0 && newHorizontalOffset < _horizScrollBar.Value) 17255if (_horizScrollBar.Enabled) 17257_horizScrollBar.Value = _horizontalOffset; 28915if (_horizScrollBar is not null) 28917_horizScrollBar.MouseEnter -= ScrollBar_MouseEnter; 28918_horizScrollBar.MouseLeave -= ScrollBar_MouseLeave; 30013if (_horizScrollBar is not null) 30015_horizScrollBar.MouseEnter += ScrollBar_MouseEnter; 30016_horizScrollBar.MouseLeave += ScrollBar_MouseLeave;