1 write to _hScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
66
_hScrollBar
= new()
81 references to _hScrollBar
System.Windows.Forms (81)
System\Windows\Forms\Printing\PrintPreviewControl.cs (34)
77
_hScrollBar
.ValueChanged += scrollBar_ValueChanged;
78
Controls.Add(
_hScrollBar
);
464
if (
_hScrollBar
.Visible)
466
rect.Height -=
_hScrollBar
.Height;
485
private Rectangle ResizeBoxRectangle => new(_vScrollBar.Left,
_hScrollBar
.Top, _vScrollBar.Width,
_hScrollBar
.Height);
640
_position.X =
_hScrollBar
.Value;
731
if (!
_hScrollBar
.Visible || !_vScrollBar.Visible)
788
_hScrollBar
.Value = Math.Clamp(value.X,
_hScrollBar
.Minimum,
_hScrollBar
.Maximum);
820
bool scrollBarsVisibilityChanged = (_vScrollBar.Visible ^ verticalScrollNeeded) || (
_hScrollBar
.Visible ^ horizontalScrollNeeded);
822
_hScrollBar
.Visible = horizontalScrollNeeded;
825
_hScrollBar
.Top = availableRect.Bottom -
_hScrollBar
.Height;
826
_hScrollBar
.Width = availableRect.Width - (verticalScrollNeeded ? _vScrollBar.Width : 0);
829
_hScrollBar
,
834
else if (
_hScrollBar
.Value > 0)
836
_hScrollBar
.Value = 0;
842
_vScrollBar.Height = availableRect.Height - (horizontalScrollNeeded ?
_hScrollBar
.Height : 0);
859
offset: (horizontalScrollNeeded ?
_hScrollBar
.Height : 0));
879
bool vertical = _virtualSize.Height > displaySize.Height && displaySize.Height >
_hScrollBar
.Height;
888
vertical = _virtualSize.Height > (displaySize.Height -
_hScrollBar
.Height);
932
bool scrollVisible = _vScrollBar.Visible ||
_hScrollBar
.Visible;
934
int largeChange = vertical ? _vScrollBar.LargeChange :
_hScrollBar
.LargeChange;
977
maxPos = vertical ? _vScrollBar.Maximum :
_hScrollBar
.Maximum;
1059
if (
_hScrollBar
.Visible)
1062
if (pos >
_hScrollBar
.SmallChange)
1064
pos -=
_hScrollBar
.SmallChange;
1077
if (
_hScrollBar
.Visible)
1080
maxPos =
_hScrollBar
.Maximum -
_hScrollBar
.SmallChange;
1082
if (pos < maxPos -
_hScrollBar
.SmallChange)
1084
pos +=
_hScrollBar
.SmallChange;
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (43)
36
? owner.
_hScrollBar
.Visible ? 2 : 1
37
: owner.
_hScrollBar
.Visible ? 1 : 0;
50
: owner.
_hScrollBar
.Visible ? owner.
_hScrollBar
.AccessibilityObject : null,
52
1 => owner._vScrollBar.Visible && owner.
_hScrollBar
.Visible ? owner.
_hScrollBar
.AccessibilityObject : null,
64
&& (owner._vScrollBar.Visible || owner.
_hScrollBar
.Visible),
82
: owner.
_hScrollBar
.Visible
83
? owner.
_hScrollBar
.AccessibilityObject
86
=> owner.
_hScrollBar
.Visible
87
? owner.
_hScrollBar
.AccessibilityObject
103
if (owner.
_hScrollBar
.Visible && horizontalAmount != ScrollAmount.ScrollAmount_NoAmount)
108
scrollValue = owner.
_hScrollBar
.Value + owner.
_hScrollBar
.LargeChange;
109
owner.
_hScrollBar
.Value = (scrollValue > owner.
_hScrollBar
.Maximum ? owner.
_hScrollBar
.Maximum : scrollValue);
112
scrollValue = owner.
_hScrollBar
.Value + owner.
_hScrollBar
.SmallChange;
113
owner.
_hScrollBar
.Value = (scrollValue > owner.
_hScrollBar
.Maximum ? owner.
_hScrollBar
.Maximum : scrollValue);
116
scrollValue = owner.
_hScrollBar
.Value - owner.
_hScrollBar
.LargeChange;
117
owner.
_hScrollBar
.Value = (scrollValue < owner.
_hScrollBar
.Minimum ? owner.
_hScrollBar
.Minimum : scrollValue);
120
scrollValue = owner.
_hScrollBar
.Value - owner.
_hScrollBar
.SmallChange;
121
owner.
_hScrollBar
.Value = (scrollValue < owner.
_hScrollBar
.Minimum ? owner.
_hScrollBar
.Minimum : scrollValue);
160
if (owner.
_hScrollBar
.Visible && horizontalPercent >= 0 && horizontalPercent <= 100)
162
scrollValue = owner.
_hScrollBar
.Minimum + (int)((owner.
_hScrollBar
.Maximum - owner.
_hScrollBar
.Minimum) * horizontalPercent);
163
owner.
_hScrollBar
.Value = scrollValue;
179
if (this.TryGetOwnerAs(out PrintPreviewControl? owner) && owner.
_hScrollBar
.Visible)
181
double percent = owner.
_hScrollBar
.Value * 100.0 / (owner.
_hScrollBar
.Maximum - owner.
_hScrollBar
.LargeChange);
204
&& owner.
_hScrollBar
.Visible ? owner.HorizontalViewSize : 100;
210
this.TryGetOwnerAs(out PrintPreviewControl? owner) && owner.
_hScrollBar
.Visible;
System\Windows\Forms\Printing\PrintPreviewControl.ScrollBarAccessibleObject.cs (4)
35
printPreviewControl.
_hScrollBar
.Visible &&
37
? printPreviewControl.
_hScrollBar
.AccessibilityObject
40
=> printPreviewControl.
_hScrollBar
.Visible &&
42
scrollBar == printPreviewControl.
_hScrollBar