1 write to _vScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
79
_vScrollBar
= new()
84 references to _vScrollBar
System.Windows.Forms (84)
System\Windows\Forms\Printing\PrintPreviewControl.cs (39)
89
_vScrollBar
.ValueChanged += scrollBar_ValueChanged;
90
Controls.Add(
_vScrollBar
);
448
if (
_vScrollBar
.Visible)
450
rect.Width -=
_vScrollBar
.Width;
454
rect.X +=
_vScrollBar
.Width;
464
private Rectangle ResizeBoxRectangle => new(
_vScrollBar
.Left, _hScrollBar.Top,
_vScrollBar
.Width, _hScrollBar.Height);
620
_position.Y =
_vScrollBar
.Value;
707
if (!_hScrollBar.Visible || !
_vScrollBar
.Visible)
765
_vScrollBar
.Value = Math.Clamp(value.Y,
_vScrollBar
.Minimum,
_vScrollBar
.Maximum);
796
bool scrollBarsVisibilityChanged = (
_vScrollBar
.Visible ^ verticalScrollNeeded) || (_hScrollBar.Visible ^ horizontalScrollNeeded);
802
_hScrollBar.Width = availableRect.Width - (verticalScrollNeeded ?
_vScrollBar
.Width : 0);
808
offset: (verticalScrollNeeded ?
_vScrollBar
.Width : 0));
815
_vScrollBar
.Visible = verticalScrollNeeded;
818
_vScrollBar
.Height = availableRect.Height - (horizontalScrollNeeded ? _hScrollBar.Height : 0);
822
_vScrollBar
.Left = availableRect.Left;
823
_vScrollBar
.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom;
827
_vScrollBar
.Left = availableRect.Right -
_vScrollBar
.Width;
828
_vScrollBar
.Anchor = AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
832
_vScrollBar
,
837
else if (
_vScrollBar
.Value > 0)
839
_vScrollBar
.Value = 0;
854
bool horizontal = _virtualSize.Width > displaySize.Width && displaySize.Width >
_vScrollBar
.Width;
859
horizontal = _virtualSize.Width > (displaySize.Width -
_vScrollBar
.Width);
908
bool scrollVisible =
_vScrollBar
.Visible || _hScrollBar.Visible;
909
bool vertical =
_vScrollBar
.Visible;
910
int largeChange = vertical ?
_vScrollBar
.LargeChange : _hScrollBar.LargeChange;
953
maxPos = vertical ?
_vScrollBar
.Maximum : _hScrollBar.Maximum;
997
if (
_vScrollBar
.Visible)
1000
if (pos >
_vScrollBar
.SmallChange)
1002
pos -=
_vScrollBar
.SmallChange;
1015
if (
_vScrollBar
.Visible)
1018
maxPos =
_vScrollBar
.Maximum -
_vScrollBar
.SmallChange;
1020
if (pos < maxPos -
_vScrollBar
.SmallChange)
1022
pos +=
_vScrollBar
.SmallChange;
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (41)
35
return owner.
_vScrollBar
.Visible
49
0 => owner.
_vScrollBar
.Visible ? owner.
_vScrollBar
.AccessibilityObject
52
1 => owner.
_vScrollBar
.Visible && owner._hScrollBar.Visible ? owner._hScrollBar.AccessibilityObject : null,
64
&& (owner.
_vScrollBar
.Visible || owner._hScrollBar.Visible),
80
=> owner.
_vScrollBar
.Visible
81
? owner.
_vScrollBar
.AccessibilityObject
88
: owner.
_vScrollBar
.Visible
89
? owner.
_vScrollBar
.AccessibilityObject
126
if (owner.
_vScrollBar
.Visible && verticalAmount != ScrollAmount.ScrollAmount_NoAmount)
131
scrollValue = owner.
_vScrollBar
.Value + owner.
_vScrollBar
.LargeChange;
132
owner.
_vScrollBar
.Value = (scrollValue > owner.
_vScrollBar
.Maximum ? owner.
_vScrollBar
.Maximum : scrollValue);
135
scrollValue = owner.
_vScrollBar
.Value + owner.
_vScrollBar
.SmallChange;
136
owner.
_vScrollBar
.Value = (scrollValue > owner.
_vScrollBar
.Maximum ? owner.
_vScrollBar
.Maximum : scrollValue);
139
scrollValue = owner.
_vScrollBar
.Value - owner.
_vScrollBar
.LargeChange;
140
owner.
_vScrollBar
.Value = (scrollValue < owner.
_vScrollBar
.Minimum ? owner.
_vScrollBar
.Minimum : scrollValue);
143
scrollValue = owner.
_vScrollBar
.Value - owner.
_vScrollBar
.SmallChange;
144
owner.
_vScrollBar
.Value = (scrollValue < owner.
_vScrollBar
.Minimum ? owner.
_vScrollBar
.Minimum : scrollValue);
166
if (owner.
_vScrollBar
.Visible && verticalPercent >= 0 && verticalPercent <= 100)
168
scrollValue = owner.
_vScrollBar
.Minimum + (int)((owner.
_vScrollBar
.Maximum - owner.
_vScrollBar
.Minimum) * verticalPercent);
169
owner.
_vScrollBar
.Value = scrollValue;
193
if (this.TryGetOwnerAs(out PrintPreviewControl? owner) && owner.
_vScrollBar
.Visible)
195
double percent = owner.
_vScrollBar
.Value * 100.0 / (owner.
_vScrollBar
.Maximum - owner.
_vScrollBar
.LargeChange);
207
&& owner.
_vScrollBar
.Visible ? owner.VerticalViewSize : 100;
213
this.TryGetOwnerAs(out PrintPreviewControl? owner) && owner.
_vScrollBar
.Visible;
System\Windows\Forms\Printing\PrintPreviewControl.ScrollBarAccessibleObject.cs (4)
34
=> printPreviewControl.
_vScrollBar
.Visible &&
36
scrollBar == printPreviewControl.
_vScrollBar
41
printPreviewControl.
_vScrollBar
.Visible &&
43
? printPreviewControl.
_vScrollBar
.AccessibilityObject