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)
88
if (owner.
_horizScrollBar
.Visible)
92
return owner.
_horizScrollBar
.AccessibilityObject;
126
if (owner.
_horizScrollBar
.Visible)
System\Windows\Forms\Controls\DataGridView\DataGridView.ControlCollection.cs (2)
37
if (value != _owner.
_horizScrollBar
&& value != _owner._vertScrollBar && value != _owner._editingPanel)
52
if (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;
462
Controls.Add(
_horizScrollBar
);
2130
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
2132
rectDisplay.Height -=
_horizScrollBar
.Height;
2218
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
2220
return
_horizScrollBar
.Bounds.Contains(ptMouse);
2696
if (
_horizScrollBar
.Enabled)
2698
_horizScrollBar
.Value = value;
2783
protected ScrollBar HorizontalScrollBar =>
_horizScrollBar
;
2785
internal int HorizontalScrollBarHeight =>
_horizScrollBar
.Height;
2787
internal bool HorizontalScrollBarVisible =>
_horizScrollBar
.Visible;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (51)
5595
_horizScrollBar
?.Dispose();
9002
minimumHeight +=
_horizScrollBar
.Height;
9290
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible &&
_horizScrollBar
.Bounds.Contains(x, y))
10023
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
10025
_horizScrollBar
.Invalidate();
10165
int horizScrollBarHeight =
_horizScrollBar
.Height = SystemInformation.HorizontalScrollBarHeight;
10305
_horizScrollBar
.Height);
10312
_horizScrollBar
.Minimum = 0;
10313
_horizScrollBar
.Maximum = totalVisibleWidth - totalVisibleFrozenWidth;
10314
Debug.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;
14348
if (
_horizScrollBar
.Enabled)
14350
_horizScrollBar
.Value = _horizontalOffset;
14988
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
14990
_horizScrollBar
.Enabled = true;
16464
ScrollBar sb = (verticalScroll ? _vertScrollBar :
_horizScrollBar
);
16529
HorizontalOffset -= fullNotches *
_horizScrollBar
.LargeChange;
16530
if (Math.Abs(HorizontalOffset - originalHorizontalOffset) >= Math.Abs(fullNotches *
_horizScrollBar
.LargeChange))
16610
extremeScrollBarValue =
_horizScrollBar
.Minimum;
16615
extremeScrollBarValue =
_horizScrollBar
.Maximum;
16620
while (
_horizScrollBar
.Value != extremeScrollBarValue && absScrollBands > 0)
16626
if (
_horizScrollBar
.Value == extremeScrollBarValue)
17169
if (
_horizScrollBar
.Enabled)
17171
int newHorizontalOffset =
_horizScrollBar
.Maximum -
_horizScrollBar
.LargeChange - dataGridViewColumn.Thickness;
17172
if (newHorizontalOffset >= 0 && newHorizontalOffset <
_horizScrollBar
.Value)
17190
if (
_horizScrollBar
.Enabled)
17192
_horizScrollBar
.Value = _horizontalOffset;
28842
if (
_horizScrollBar
is not null)
28844
_horizScrollBar
.MouseEnter -= ScrollBar_MouseEnter;
28845
_horizScrollBar
.MouseLeave -= ScrollBar_MouseLeave;
29940
if (
_horizScrollBar
is not null)
29942
_horizScrollBar
.MouseEnter += ScrollBar_MouseEnter;
29943
_horizScrollBar
.MouseLeave += ScrollBar_MouseLeave;