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)
89
if (owner.
_horizScrollBar
.Visible)
93
return owner.
_horizScrollBar
.AccessibilityObject;
127
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)
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;
466
Controls.Add(
_horizScrollBar
);
2123
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
2125
rectDisplay.Height -=
_horizScrollBar
.Height;
2211
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
2213
return
_horizScrollBar
.Bounds.Contains(ptMouse);
2689
if (
_horizScrollBar
.Enabled)
2691
_horizScrollBar
.Value = value;
2776
protected ScrollBar HorizontalScrollBar =>
_horizScrollBar
;
2778
internal int HorizontalScrollBarHeight =>
_horizScrollBar
.Height;
2780
internal bool HorizontalScrollBarVisible =>
_horizScrollBar
.Visible;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (51)
5601
_horizScrollBar
?.Dispose();
9007
minimumHeight +=
_horizScrollBar
.Height;
9295
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible &&
_horizScrollBar
.Bounds.Contains(x, y))
10028
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
10030
_horizScrollBar
.Invalidate();
10170
int horizScrollBarHeight =
_horizScrollBar
.Height = SystemInformation.HorizontalScrollBarHeight;
10310
_horizScrollBar
.Height);
10317
_horizScrollBar
.Minimum = 0;
10318
_horizScrollBar
.Maximum = totalVisibleWidth - totalVisibleFrozenWidth;
10319
Debug.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;
14340
if (
_horizScrollBar
.Enabled)
14342
_horizScrollBar
.Value = _horizontalOffset;
14979
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
14981
_horizScrollBar
.Enabled = true;
16451
ScrollBar sb = (verticalScroll ? _vertScrollBar :
_horizScrollBar
);
16519
HorizontalOffset -= fullNotches *
_horizScrollBar
.LargeChange;
16520
if (Math.Abs(HorizontalOffset - originalHorizontalOffset) >= Math.Abs(fullNotches *
_horizScrollBar
.LargeChange))
16600
extremeScrollBarValue =
_horizScrollBar
.Minimum;
16605
extremeScrollBarValue =
_horizScrollBar
.Maximum;
16610
while (
_horizScrollBar
.Value != extremeScrollBarValue && absScrollBands > 0)
16616
if (
_horizScrollBar
.Value == extremeScrollBarValue)
17159
if (
_horizScrollBar
.Enabled)
17161
int newHorizontalOffset =
_horizScrollBar
.Maximum -
_horizScrollBar
.LargeChange - dataGridViewColumn.Thickness;
17162
if (newHorizontalOffset >= 0 && newHorizontalOffset <
_horizScrollBar
.Value)
17180
if (
_horizScrollBar
.Enabled)
17182
_horizScrollBar
.Value = _horizontalOffset;
28834
if (
_horizScrollBar
is not null)
28836
_horizScrollBar
.MouseEnter -= ScrollBar_MouseEnter;
28837
_horizScrollBar
.MouseLeave -= ScrollBar_MouseLeave;
29935
if (
_horizScrollBar
is not null)
29937
_horizScrollBar
.MouseEnter += ScrollBar_MouseEnter;
29938
_horizScrollBar
.MouseLeave += ScrollBar_MouseLeave;