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)
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)
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)
5598
_horizScrollBar
?.Dispose();
9005
minimumHeight +=
_horizScrollBar
.Height;
9293
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible &&
_horizScrollBar
.Bounds.Contains(x, y))
10026
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
10028
_horizScrollBar
.Invalidate();
10168
int horizScrollBarHeight =
_horizScrollBar
.Height = SystemInformation.HorizontalScrollBarHeight;
10308
_horizScrollBar
.Height);
10315
_horizScrollBar
.Minimum = 0;
10316
_horizScrollBar
.Maximum = totalVisibleWidth - totalVisibleFrozenWidth;
10317
Debug.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;
14351
if (
_horizScrollBar
.Enabled)
14353
_horizScrollBar
.Value = _horizontalOffset;
14991
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
14993
_horizScrollBar
.Enabled = true;
16467
ScrollBar sb = (verticalScroll ? _vertScrollBar :
_horizScrollBar
);
16535
HorizontalOffset -= fullNotches *
_horizScrollBar
.LargeChange;
16536
if (Math.Abs(HorizontalOffset - originalHorizontalOffset) >= Math.Abs(fullNotches *
_horizScrollBar
.LargeChange))
16616
extremeScrollBarValue =
_horizScrollBar
.Minimum;
16621
extremeScrollBarValue =
_horizScrollBar
.Maximum;
16626
while (
_horizScrollBar
.Value != extremeScrollBarValue && absScrollBands > 0)
16632
if (
_horizScrollBar
.Value == extremeScrollBarValue)
17175
if (
_horizScrollBar
.Enabled)
17177
int newHorizontalOffset =
_horizScrollBar
.Maximum -
_horizScrollBar
.LargeChange - dataGridViewColumn.Thickness;
17178
if (newHorizontalOffset >= 0 && newHorizontalOffset <
_horizScrollBar
.Value)
17196
if (
_horizScrollBar
.Enabled)
17198
_horizScrollBar
.Value = _horizontalOffset;
28850
if (
_horizScrollBar
is not null)
28852
_horizScrollBar
.MouseEnter -= ScrollBar_MouseEnter;
28853
_horizScrollBar
.MouseLeave -= ScrollBar_MouseLeave;
29951
if (
_horizScrollBar
is not null)
29953
_horizScrollBar
.MouseEnter += ScrollBar_MouseEnter;
29954
_horizScrollBar
.MouseLeave += ScrollBar_MouseLeave;