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)
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)
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;
467
Controls.Add(
_horizScrollBar
);
2135
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
2137
rectDisplay.Height -=
_horizScrollBar
.Height;
2223
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
2225
return
_horizScrollBar
.Bounds.Contains(ptMouse);
2701
if (
_horizScrollBar
.Enabled)
2703
_horizScrollBar
.Value = value;
2788
protected ScrollBar HorizontalScrollBar =>
_horizScrollBar
;
2790
internal int HorizontalScrollBarHeight =>
_horizScrollBar
.Height;
2792
internal bool HorizontalScrollBarVisible =>
_horizScrollBar
.Visible;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (51)
5654
_horizScrollBar
?.Dispose();
9061
minimumHeight +=
_horizScrollBar
.Height;
9349
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible &&
_horizScrollBar
.Bounds.Contains(x, y))
10082
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
10084
_horizScrollBar
.Invalidate();
10224
int horizScrollBarHeight =
_horizScrollBar
.Height = SystemInformation.HorizontalScrollBarHeight;
10364
_horizScrollBar
.Height);
10371
_horizScrollBar
.Minimum = 0;
10372
_horizScrollBar
.Maximum = totalVisibleWidth - totalVisibleFrozenWidth;
10373
Debug.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;
14407
if (
_horizScrollBar
.Enabled)
14409
_horizScrollBar
.Value = _horizontalOffset;
15047
if (
_horizScrollBar
is not null &&
_horizScrollBar
.Visible)
15049
_horizScrollBar
.Enabled = true;
16529
ScrollBar sb = (verticalScroll ? _vertScrollBar :
_horizScrollBar
);
16594
HorizontalOffset -= fullNotches *
_horizScrollBar
.LargeChange;
16595
if (Math.Abs(HorizontalOffset - originalHorizontalOffset) >= Math.Abs(fullNotches *
_horizScrollBar
.LargeChange))
16675
extremeScrollBarValue =
_horizScrollBar
.Minimum;
16680
extremeScrollBarValue =
_horizScrollBar
.Maximum;
16685
while (
_horizScrollBar
.Value != extremeScrollBarValue && absScrollBands > 0)
16691
if (
_horizScrollBar
.Value == extremeScrollBarValue)
17234
if (
_horizScrollBar
.Enabled)
17236
int newHorizontalOffset =
_horizScrollBar
.Maximum -
_horizScrollBar
.LargeChange - dataGridViewColumn.Thickness;
17237
if (newHorizontalOffset >= 0 && newHorizontalOffset <
_horizScrollBar
.Value)
17255
if (
_horizScrollBar
.Enabled)
17257
_horizScrollBar
.Value = _horizontalOffset;
28915
if (
_horizScrollBar
is not null)
28917
_horizScrollBar
.MouseEnter -= ScrollBar_MouseEnter;
28918
_horizScrollBar
.MouseLeave -= ScrollBar_MouseLeave;
30013
if (
_horizScrollBar
is not null)
30015
_horizScrollBar
.MouseEnter += ScrollBar_MouseEnter;
30016
_horizScrollBar
.MouseLeave += ScrollBar_MouseLeave;