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)
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); 2131if (_horizScrollBar is not null && _horizScrollBar.Visible) 2133rectDisplay.Height -= _horizScrollBar.Height; 2219if (_horizScrollBar is not null && _horizScrollBar.Visible) 2221return _horizScrollBar.Bounds.Contains(ptMouse); 2697if (_horizScrollBar.Enabled) 2699_horizScrollBar.Value = value; 2784protected ScrollBar HorizontalScrollBar => _horizScrollBar; 2786internal int HorizontalScrollBarHeight => _horizScrollBar.Height; 2788internal 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); 16532HorizontalOffset -= fullNotches * _horizScrollBar.LargeChange; 16533if (Math.Abs(HorizontalOffset - originalHorizontalOffset) >= Math.Abs(fullNotches * _horizScrollBar.LargeChange)) 16613extremeScrollBarValue = _horizScrollBar.Minimum; 16618extremeScrollBarValue = _horizScrollBar.Maximum; 16623while (_horizScrollBar.Value != extremeScrollBarValue && absScrollBands > 0) 16629if (_horizScrollBar.Value == extremeScrollBarValue) 17172if (_horizScrollBar.Enabled) 17174int newHorizontalOffset = _horizScrollBar.Maximum - _horizScrollBar.LargeChange - dataGridViewColumn.Thickness; 17175if (newHorizontalOffset >= 0 && newHorizontalOffset < _horizScrollBar.Value) 17193if (_horizScrollBar.Enabled) 17195_horizScrollBar.Value = _horizontalOffset; 28845if (_horizScrollBar is not null) 28847_horizScrollBar.MouseEnter -= ScrollBar_MouseEnter; 28848_horizScrollBar.MouseLeave -= ScrollBar_MouseLeave; 29943if (_horizScrollBar is not null) 29945_horizScrollBar.MouseEnter += ScrollBar_MouseEnter; 29946_horizScrollBar.MouseLeave += ScrollBar_MouseLeave;