1 write to horizScrollBar
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
5606
this.
horizScrollBar
= null;
74 references to horizScrollBar
System.Windows.Forms (74)
winforms\Managed\System\WinForms\DataGridView.cs (17)
502
this.
horizScrollBar
.RightToLeft = RightToLeft.Inherit;
503
this.
horizScrollBar
.AccessibleName = SR.GetString(SR.DataGridView_AccHorizontalScrollBarAccName);
504
this.
horizScrollBar
.Top = this.ClientRectangle.Height -
horizScrollBar
.Height;
505
this.
horizScrollBar
.Left = 0;
506
this.
horizScrollBar
.Visible = false;
507
this.
horizScrollBar
.Scroll += new ScrollEventHandler(DataGridViewHScrolled);
508
this.Controls.Add(this.
horizScrollBar
);
2693
if (this.
horizScrollBar
!= null && this.
horizScrollBar
.Visible)
2695
rectDisplay.Height -= this.
horizScrollBar
.Height;
2799
if (this.
horizScrollBar
!= null && this.
horizScrollBar
.Visible)
2801
return this.
horizScrollBar
.Bounds.Contains(ptMouse);
3401
if (this.
horizScrollBar
.Enabled)
3403
this.
horizScrollBar
.Value = value;
3487
return this.
horizScrollBar
;
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (3)
122
if (this.owner.
horizScrollBar
.Visible)
126
return this.owner.
horizScrollBar
.AccessibilityObject;
161
if (this.owner.
horizScrollBar
.Visible)
winforms\Managed\System\WinForms\DataGridViewControlCollection.cs (2)
46
if (value != owner.
horizScrollBar
&& value != owner.vertScrollBar && value != this.owner.editingPanel)
62
if (this[i] == this.owner.
horizScrollBar
|| this[i] == this.owner.vertScrollBar || this[i] == this.owner.editingPanel)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (52)
5603
if (this.
horizScrollBar
!= null)
5605
this.
horizScrollBar
.Dispose();
9089
minimumHeight += this.
horizScrollBar
.Height;
9386
if (this.
horizScrollBar
!= null && this.
horizScrollBar
.Visible && this.
horizScrollBar
.Bounds.Contains(x, y))
10201
if (this.
horizScrollBar
!= null && this.
horizScrollBar
.Visible)
10203
this.
horizScrollBar
.Invalidate();
10345
int horizScrollBarHeight = this.
horizScrollBar
.Height = SystemInformation.HorizontalScrollBarHeight;
10482
this.
horizScrollBar
.Height);
10489
this.
horizScrollBar
.Minimum = 0;
10490
this.
horizScrollBar
.Maximum = totalVisibleWidth - totalVisibleFrozenWidth;
10491
Debug.Assert(this.
horizScrollBar
.Maximum > 0);
10492
this.
horizScrollBar
.SmallChange = 1;
10493
this.
horizScrollBar
.LargeChange = Math.Max(totalVisibleWidth - totalVisibleFrozenWidth - widthNotVisible, 0);
10494
this.
horizScrollBar
.Enabled = this.Enabled;
10495
this.
horizScrollBar
.Bounds = new Rectangle(
10499
this.
horizScrollBar
.Height);
10500
this.
horizScrollBar
.Visible = true;
10501
this.
horizScrollBar
.Invalidate();
10505
this.
horizScrollBar
.Visible = false;
10508
this.
horizScrollBar
.Enabled = false;
10509
this.
horizScrollBar
.Minimum = 0;
10510
this.
horizScrollBar
.Maximum = 1;
10511
this.
horizScrollBar
.SmallChange = 1;
10512
this.
horizScrollBar
.LargeChange = 1;
10513
this.
horizScrollBar
.Value = 0;
14819
if (this.
horizScrollBar
.Enabled)
14821
this.
horizScrollBar
.Value = this.horizontalOffset;
15502
if (this.
horizScrollBar
!= null && this.
horizScrollBar
.Visible)
15504
this.
horizScrollBar
.Enabled = true;
16906
ScrollBar sb = (verticalScroll ? (ScrollBar) this.vertScrollBar : (ScrollBar) this.
horizScrollBar
);
16972
this.HorizontalOffset -= fullNotches * this.
horizScrollBar
.LargeChange;
16973
if (Math.Abs(this.HorizontalOffset - originalHorizontalOffset) >= Math.Abs(fullNotches * this.
horizScrollBar
.LargeChange))
17048
extremeScrollBarValue = this.
horizScrollBar
.Minimum;
17053
extremeScrollBarValue = this.
horizScrollBar
.Maximum;
17057
while (this.
horizScrollBar
.Value != extremeScrollBarValue && absScrollBands > 0)
17062
if (this.
horizScrollBar
.Value == extremeScrollBarValue)
17624
if (this.
horizScrollBar
.Enabled)
17626
int newHorizontalOffset = this.
horizScrollBar
.Maximum - this.
horizScrollBar
.LargeChange - dataGridViewColumn.Thickness;
17627
if (newHorizontalOffset >= 0 && newHorizontalOffset < this.
horizScrollBar
.Value)
17645
if (this.
horizScrollBar
.Enabled)
17647
this.
horizScrollBar
.Value = this.horizontalOffset;
28891
if (this.
horizScrollBar
!= null)
28893
this.
horizScrollBar
.MouseEnter -= new System.EventHandler(ScrollBar_MouseEnter);
28894
this.
horizScrollBar
.MouseLeave -= new System.EventHandler(ScrollBar_MouseLeave);
29832
if (this.
horizScrollBar
!= null)
29834
this.
horizScrollBar
.MouseEnter += new System.EventHandler(ScrollBar_MouseEnter);
29835
this.
horizScrollBar
.MouseLeave += new System.EventHandler(ScrollBar_MouseLeave);