1 write to _hScrollBar
System.Windows.Forms (1)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
65
_hScrollBar
= new()
81 references to _hScrollBar
System.Windows.Forms (81)
System\Windows\Forms\Printing\PrintPreviewControl.cs (34)
76
_hScrollBar
.ValueChanged += scrollBar_ValueChanged;
77
Controls.Add(
_hScrollBar
);
443
if (
_hScrollBar
.Visible)
445
rect.Height -=
_hScrollBar
.Height;
464
private Rectangle ResizeBoxRectangle => new(_vScrollBar.Left,
_hScrollBar
.Top, _vScrollBar.Width,
_hScrollBar
.Height);
619
_position.X =
_hScrollBar
.Value;
707
if (!
_hScrollBar
.Visible || !_vScrollBar.Visible)
764
_hScrollBar
.Value = Math.Clamp(value.X,
_hScrollBar
.Minimum,
_hScrollBar
.Maximum);
796
bool scrollBarsVisibilityChanged = (_vScrollBar.Visible ^ verticalScrollNeeded) || (
_hScrollBar
.Visible ^ horizontalScrollNeeded);
798
_hScrollBar
.Visible = horizontalScrollNeeded;
801
_hScrollBar
.Top = availableRect.Bottom -
_hScrollBar
.Height;
802
_hScrollBar
.Width = availableRect.Width - (verticalScrollNeeded ? _vScrollBar.Width : 0);
805
_hScrollBar
,
810
else if (
_hScrollBar
.Value > 0)
812
_hScrollBar
.Value = 0;
818
_vScrollBar.Height = availableRect.Height - (horizontalScrollNeeded ?
_hScrollBar
.Height : 0);
835
offset: (horizontalScrollNeeded ?
_hScrollBar
.Height : 0));
855
bool vertical = _virtualSize.Height > displaySize.Height && displaySize.Height >
_hScrollBar
.Height;
864
vertical = _virtualSize.Height > (displaySize.Height -
_hScrollBar
.Height);
908
bool scrollVisible = _vScrollBar.Visible ||
_hScrollBar
.Visible;
910
int largeChange = vertical ? _vScrollBar.LargeChange :
_hScrollBar
.LargeChange;
953
maxPos = vertical ? _vScrollBar.Maximum :
_hScrollBar
.Maximum;
1035
if (
_hScrollBar
.Visible)
1038
if (pos >
_hScrollBar
.SmallChange)
1040
pos -=
_hScrollBar
.SmallChange;
1053
if (
_hScrollBar
.Visible)
1056
maxPos =
_hScrollBar
.Maximum -
_hScrollBar
.SmallChange;
1058
if (pos < maxPos -
_hScrollBar
.SmallChange)
1060
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