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