105 references to HorizontalScroll
System.Windows.Forms (28)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
903
get => base.
HorizontalScroll
;
System\Windows\Forms\Scrolling\ScrollableControl.cs (27)
163
if (HScroll ||
HorizontalScroll
.Visible)
558
if (!AutoScroll &&
HorizontalScroll
._visible)
560
_displayRect = new Rectangle(_displayRect.X, _displayRect.Y,
HorizontalScroll
.Maximum, _displayRect.Height);
1019
HorizontalScroll
._visible = true;
1023
ResetScrollProperties(
HorizontalScroll
);
1156
if (!
HorizontalScroll
._maximumSetExternally)
1158
HorizontalScroll
._maximum = displayRect.Width - 1;
1161
if (!
HorizontalScroll
._largeChangeSetExternally)
1163
HorizontalScroll
._largeChange = ClientRectangle.Width;
1166
if (!
HorizontalScroll
._smallChangeSetExternally)
1168
HorizontalScroll
._smallChange = 5;
1176
else if (-displayRect.X >=
HorizontalScroll
._minimum && -displayRect.X <
HorizontalScroll
._maximum)
1178
HorizontalScroll
._value = -displayRect.X;
1181
HorizontalScroll
.UpdateScrollInfo();
1211
if (
HorizontalScroll
.Visible)
1213
HorizontalScroll
.Value = -displayRect.X;
1217
ResetScrollProperties(
HorizontalScroll
);
1367
maxPos =
HorizontalScroll
.Maximum;
1378
if (pos >
HorizontalScroll
.SmallChange)
1380
pos -=
HorizontalScroll
.SmallChange;
1389
if (pos < maxPos -
HorizontalScroll
.SmallChange)
1391
pos +=
HorizontalScroll
.SmallChange;
1400
if (pos >
HorizontalScroll
.LargeChange)
1402
pos -=
HorizontalScroll
.LargeChange;
1411
if (pos < maxPos -
HorizontalScroll
.LargeChange)
1413
pos +=
HorizontalScroll
.LargeChange;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\FormDocumentDesigner.cs (2)
114
if (form.
HorizontalScroll
.Visible)
429
if (form.
HorizontalScroll
.Visible && form.AutoScroll)
System.Windows.Forms.Design.Tests (3)
System\ComponentModel\Design\ByteViewerTests.cs (3)
84
Assert.NotNull(control.
HorizontalScroll
);
85
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System.Windows.Forms.Tests (71)
System\Windows\Forms\ContainerControlTests.cs (3)
84
Assert.NotNull(control.
HorizontalScroll
);
85
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (3)
99
Assert.NotNull(control.
HorizontalScroll
);
100
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (3)
81
Assert.NotNull(control.
HorizontalScroll
);
82
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\DomainUpDownTests.cs (3)
103
_sub.
HorizontalScroll
.Should().NotBeNull();
104
_sub.
HorizontalScroll
.Should().BeSameAs(_sub.
HorizontalScroll
);
System\Windows\Forms\FlowLayoutPanelTests.cs (3)
78
Assert.NotNull(control.
HorizontalScroll
);
79
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\FormTests.cs (3)
101
Assert.NotNull(control.
HorizontalScroll
);
102
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\PanelTests.cs (3)
78
Assert.NotNull(control.
HorizontalScroll
);
79
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\PropertyGridTests.cs (3)
111
Assert.NotNull(control.
HorizontalScroll
);
112
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\ScrollableControlTests.cs (23)
77
Assert.NotNull(control.
HorizontalScroll
);
78
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
147
control.
HorizontalScroll
.Visible = horizontalScrollVisible;
540
control.
HorizontalScroll
.Visible = true;
1032
control.
HorizontalScroll
.Value = hValue;
1037
Assert.Equal(expectedHValue, control.
HorizontalScroll
.Value);
1038
Assert.False(control.
HorizontalScroll
.Visible);
1057
control.
HorizontalScroll
.Value = hValue;
1062
Assert.Equal(expectedHValue, control.
HorizontalScroll
.Value);
1063
Assert.False(control.
HorizontalScroll
.Visible);
1124
control.
HorizontalScroll
.Value = hValue;
1129
Assert.Equal(expectedHValue, control.
HorizontalScroll
.Value);
1130
Assert.True(control.
HorizontalScroll
.Visible);
1190
control.
HorizontalScroll
.Value = hValue;
1202
Assert.Equal(expectedHValue, control.
HorizontalScroll
.Value);
1203
Assert.False(control.
HorizontalScroll
.Visible);
1225
control.
HorizontalScroll
.Value = hValue;
1237
Assert.Equal(expectedHValue, control.
HorizontalScroll
.Value);
1238
Assert.False(control.
HorizontalScroll
.Visible);
1302
control.
HorizontalScroll
.Value = hValue;
1314
Assert.Equal(expectedHValue, control.
HorizontalScroll
.Value);
1315
Assert.True(control.
HorizontalScroll
.Visible);
System\Windows\Forms\SplitterPanelTests.cs (3)
70
Assert.NotNull(control.
HorizontalScroll
);
71
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\TableLayoutPanelTests.cs (3)
84
Assert.NotNull(control.
HorizontalScroll
);
85
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\TabPageTests.cs (6)
83
Assert.NotNull(control.
HorizontalScroll
);
84
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
192
Assert.NotNull(control.
HorizontalScroll
);
193
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
80
Assert.NotNull(control.
HorizontalScroll
);
81
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\ToolStripPanelTests.cs (3)
80
Assert.NotNull(control.
HorizontalScroll
);
81
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\UpDownBaseTests.cs (3)
90
Assert.NotNull(control.
HorizontalScroll
);
91
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System\Windows\Forms\UserControlTests.cs (3)
84
Assert.NotNull(control.
HorizontalScroll
);
85
Assert.Same(control.
HorizontalScroll
, control.
HorizontalScroll
);
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
425
HScrollProperties horizontalScroll = _propertyGrid.
HorizontalScroll
;