1 write to vertScrollBar
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
5601
this.
vertScrollBar
= null;
105 references to vertScrollBar
System.Windows.Forms (105)
winforms\Managed\System\WinForms\DataGridView.cs (19)
510
this.
vertScrollBar
.Top = 0;
511
this.
vertScrollBar
.AccessibleName = SR.GetString(SR.DataGridView_AccVerticalScrollBarAccName);
512
this.
vertScrollBar
.Left = this.ClientRectangle.Width -
vertScrollBar
.Width;
513
this.
vertScrollBar
.Visible = false;
514
this.
vertScrollBar
.Scroll += new ScrollEventHandler(DataGridViewVScrolled);
515
this.Controls.Add(this.
vertScrollBar
);
2697
if (this.
vertScrollBar
!= null && this.
vertScrollBar
.Visible)
2699
rectDisplay.Width -= this.
vertScrollBar
.Width;
2702
rectDisplay.X = this.
vertScrollBar
.Width;
2792
if (this.
vertScrollBar
!= null && this.
vertScrollBar
.Visible)
2794
if (this.
vertScrollBar
.Bounds.Contains(ptMouse))
5203
if (value > this.
vertScrollBar
.Maximum - fittingTrailingScrollingRowsHeight)
5205
value = this.
vertScrollBar
.Maximum - fittingTrailingScrollingRowsHeight;
5213
if (this.
vertScrollBar
.Enabled)
5215
this.
vertScrollBar
.Value = value;
5226
return this.
vertScrollBar
;
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (3)
134
if (this.owner.
vertScrollBar
.Visible)
138
return this.owner.
vertScrollBar
.AccessibilityObject;
166
if (this.owner.
vertScrollBar
.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 (81)
4503
if (this.
vertScrollBar
.Enabled)
4507
int oldVertScrollBarValue = this.
vertScrollBar
.Value;
4508
int oldThumbHeight = Math.Max(((this.
vertScrollBar
.Height - 2*SystemInformation.VerticalScrollBarArrowHeight) * this.
vertScrollBar
.LargeChange) / this.
vertScrollBar
.Maximum, 8);
4510
this.
vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
4511
Debug.Assert(this.
vertScrollBar
.Maximum > 0);
4512
this.
vertScrollBar
.Value = ComputeHeightOfScrolledOffRows();
4513
this.
vertScrollBar
.LargeChange = this.layout.Data.Height - totalVisibleFrozenHeight;
4514
this.verticalOffset = this.
vertScrollBar
.Value;
4516
if (this.
vertScrollBar
.Visible &&
4518
oldThumbHeight != Math.Max(((this.
vertScrollBar
.Height - 2*SystemInformation.VerticalScrollBarArrowHeight) * this.
vertScrollBar
.LargeChange) / this.
vertScrollBar
.Maximum, 8)))
4521
this.
vertScrollBar
.Invalidate();
4523
Debug.Assert(this.verticalOffset == this.
vertScrollBar
.Value);
5598
if (this.
vertScrollBar
!= null)
5600
this.
vertScrollBar
.Dispose();
8649
Debug.Assert(!this.
vertScrollBar
.Enabled ||
8650
!this.
vertScrollBar
.Visible ||
8651
this.
vertScrollBar
.Maximum == visibleRowsHeight - frozenVisibleRowsHeight);
9074
minimumWidth += this.
vertScrollBar
.Width;
9392
if (this.
vertScrollBar
!= null && this.
vertScrollBar
.Visible && this.
vertScrollBar
.Bounds.Contains(x, y))
10205
if (this.
vertScrollBar
!= null && this.
vertScrollBar
.Visible)
10207
this.
vertScrollBar
.Invalidate();
10346
int vertScrollBarWidth = this.
vertScrollBar
.Width = SystemInformation.VerticalScrollBarWidth;
10479
rightToLeftInternal ? this.layout.Data.X - this.
vertScrollBar
.Width : this.layout.Data.Right,
10481
this.
vertScrollBar
.Width,
10531
this.
vertScrollBar
.Minimum = 0;
10532
this.
vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
10533
Debug.Assert(this.
vertScrollBar
.Maximum > 0);
10534
this.
vertScrollBar
.Value = ComputeHeightOfScrolledOffRows();
10535
this.
vertScrollBar
.LargeChange = this.layout.Data.Height - totalVisibleFrozenHeight;
10536
this.
vertScrollBar
.Bounds = new Rectangle(
10537
rightToLeftInternal ? this.layout.Data.X - this.
vertScrollBar
.Width : this.layout.Data.Right,
10539
this.
vertScrollBar
.Width,
10541
this.
vertScrollBar
.Enabled = this.Enabled;
10542
this.
vertScrollBar
.Visible = true;
10543
this.
vertScrollBar
.Invalidate();
10545
this.verticalOffset = this.
vertScrollBar
.Value;
10549
this.
vertScrollBar
.Visible = false;
10552
this.
vertScrollBar
.Enabled = false;
10553
this.
vertScrollBar
.Minimum = 0;
10554
this.
vertScrollBar
.Maximum = 1;
10555
this.
vertScrollBar
.LargeChange = 1;
10556
this.
vertScrollBar
.Value = 0;
15494
if (this.
vertScrollBar
!= null && this.
vertScrollBar
.Visible)
15498
this.
vertScrollBar
.Maximum = totalVisibleHeight - totalVisibleFrozenHeight;
15500
this.
vertScrollBar
.Enabled = true;
16906
ScrollBar sb = (verticalScroll ? (ScrollBar) this.
vertScrollBar
: (ScrollBar) this.horizScrollBar);
16959
this.VerticalOffset -= fullNotches * this.
vertScrollBar
.LargeChange;
16960
if (Math.Abs(this.VerticalOffset - originalVerticalOffset) >= Math.Abs(fullNotches * this.
vertScrollBar
.LargeChange))
17003
while (this.
vertScrollBar
.Value != this.
vertScrollBar
.Minimum && absScrollBands > 0)
17008
if (this.
vertScrollBar
.Value == this.
vertScrollBar
.Minimum)
17023
this.
vertScrollBar
.Value + this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <=
17024
this.
vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
17032
if (this.
vertScrollBar
.Value + this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) >
17033
this.
vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
26428
if (this.
vertScrollBar
.Enabled)
26430
this.
vertScrollBar
.Value = this.verticalOffset;
28493
if (this.
vertScrollBar
.Value + this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <=
28494
this.
vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight))
28503
if (this.
vertScrollBar
.Value != this.
vertScrollBar
.Minimum)
28514
this.VerticalOffset += Math.Max(firstDisplayedScrollingRowHeight, this.
vertScrollBar
.LargeChange);
28520
this.VerticalOffset -= this.
vertScrollBar
.LargeChange;
28528
if (se.NewValue >= this.
vertScrollBar
.Maximum - this.
vertScrollBar
.LargeChange)
28531
this.VerticalOffset = this.
vertScrollBar
.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight);
28896
if (this.
vertScrollBar
!= null)
28898
this.
vertScrollBar
.MouseEnter -= new System.EventHandler(ScrollBar_MouseEnter);
28899
this.
vertScrollBar
.MouseLeave -= new System.EventHandler(ScrollBar_MouseLeave);
29837
if (this.
vertScrollBar
!= null)
29839
this.
vertScrollBar
.MouseEnter += new System.EventHandler(ScrollBar_MouseEnter);
29840
this.
vertScrollBar
.MouseLeave += new System.EventHandler(ScrollBar_MouseLeave);