1 write to _hScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
67
_hScrollBar
= new()
81 references to _hScrollBar
System.Windows.Forms (81)
System\Windows\Forms\Printing\PrintPreviewControl.cs (34)
78
_hScrollBar
.ValueChanged += scrollBar_ValueChanged;
79
Controls.Add(
_hScrollBar
);
449
if (
_hScrollBar
.Visible)
451
rect.Height -=
_hScrollBar
.Height;
470
private Rectangle ResizeBoxRectangle => new(_vScrollBar.Left,
_hScrollBar
.Top, _vScrollBar.Width,
_hScrollBar
.Height);
625
_position.X =
_hScrollBar
.Value;
713
if (!
_hScrollBar
.Visible || !_vScrollBar.Visible)
770
_hScrollBar
.Value = Math.Clamp(value.X,
_hScrollBar
.Minimum,
_hScrollBar
.Maximum);
802
bool scrollBarsVisibilityChanged = (_vScrollBar.Visible ^ verticalScrollNeeded) || (
_hScrollBar
.Visible ^ horizontalScrollNeeded);
804
_hScrollBar
.Visible = horizontalScrollNeeded;
807
_hScrollBar
.Top = availableRect.Bottom -
_hScrollBar
.Height;
808
_hScrollBar
.Width = availableRect.Width - (verticalScrollNeeded ? _vScrollBar.Width : 0);
811
_hScrollBar
,
816
else if (
_hScrollBar
.Value > 0)
818
_hScrollBar
.Value = 0;
824
_vScrollBar.Height = availableRect.Height - (horizontalScrollNeeded ?
_hScrollBar
.Height : 0);
841
offset: (horizontalScrollNeeded ?
_hScrollBar
.Height : 0));
861
bool vertical = _virtualSize.Height > displaySize.Height && displaySize.Height >
_hScrollBar
.Height;
870
vertical = _virtualSize.Height > (displaySize.Height -
_hScrollBar
.Height);
914
bool scrollVisible = _vScrollBar.Visible ||
_hScrollBar
.Visible;
916
int largeChange = vertical ? _vScrollBar.LargeChange :
_hScrollBar
.LargeChange;
959
maxPos = vertical ? _vScrollBar.Maximum :
_hScrollBar
.Maximum;
1041
if (
_hScrollBar
.Visible)
1044
if (pos >
_hScrollBar
.SmallChange)
1046
pos -=
_hScrollBar
.SmallChange;
1059
if (
_hScrollBar
.Visible)
1062
maxPos =
_hScrollBar
.Maximum -
_hScrollBar
.SmallChange;
1064
if (pos < maxPos -
_hScrollBar
.SmallChange)
1066
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