133 references to Horizontal
System.Windows.Forms (67)
winforms\Managed\System\WinForms\ArrowDirection.cs (2)
26
Left = 0x00 | (int)Orientation.
Horizontal
,
28
Right =0x10 | (int)Orientation.
Horizontal
,
winforms\Managed\System\WinForms\SplitContainer.cs (8)
559
if (!ClientUtils.IsEnumValid(value, (int)value, (int)Orientation.
Horizontal
, (int)Orientation.Vertical)){
1451
else if (Orientation == Orientation.
Horizontal
) {
1476
else if (Orientation == Orientation.
Horizontal
) {
1500
else if (Orientation == Orientation.
Horizontal
) {
1567
case Orientation.
Horizontal
:
1673
case Orientation.
Horizontal
:
1810
else if (Orientation == Orientation.
Horizontal
) {
2140
if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && Orientation == Orientation.
Horizontal
) {
winforms\Managed\System\WinForms\StatusStrip.cs (5)
40
private Orientation lastOrientation = Orientation.
Horizontal
;
89
if (Orientation == Orientation.
Horizontal
) {
314
if (Orientation == Orientation.
Horizontal
) {
373
bool rightToLeft = ((Orientation == Orientation.
Horizontal
) && (RightToLeft == RightToLeft.Yes));
460
if (Orientation == Orientation.
Horizontal
) {
winforms\Managed\System\WinForms\ToolStrip.cs (11)
78
private Orientation orientation = Orientation.
Horizontal
;
853
if (Orientation == Orientation.
Horizontal
) {
1341
case Orientation.
Horizontal
:
1363
UpdateOrientation(Orientation.
Horizontal
);
1371
UpdateOrientation(Orientation.
Horizontal
);
1379
UpdateOrientation((value == ToolStripLayoutStyle.VerticalStackWithOverflow) ? Orientation.Vertical : Orientation.
Horizontal
);
3192
if (IsDropDown || Orientation != Orientation.
Horizontal
) {
3936
if (Orientation == Orientation.
Horizontal
) {
4288
if (Orientation == Orientation.
Horizontal
) {
4651
UpdateOrientation(Orientation.
Horizontal
);
5543
if (owner.Orientation == Orientation.
Horizontal
) {
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (3)
57
int height = (toolStrip.Orientation == Orientation.
Horizontal
) ? bounds.Height : bounds.Width;
58
int width = (toolStrip.Orientation == Orientation.
Horizontal
) ? bounds.Width : bounds.Height;
68
shadowRects[i] = (toolStrip.Orientation == Orientation.
Horizontal
) ?
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (2)
109
if (this.ParentInternal.Orientation == Orientation.
Horizontal
) {
123
if (ParentInternal.Orientation == Orientation.
Horizontal
) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (10)
33
private Orientation orientation = Orientation.
Horizontal
;
200
Orientation = Orientation.
Horizontal
;
477
if (Orientation == Orientation.
Horizontal
) {
488
&& Orientation == Orientation.
Horizontal
713
if (Orientation == Orientation.
Horizontal
&& RightToLeft == RightToLeft.Yes) {
928
if (Orientation == Orientation.
Horizontal
) {
1054
if (Orientation == Orientation.
Horizontal
) {
1083
Point endLocation = (Orientation == Orientation.
Horizontal
) ? new Point (clientLocation.X, row.Bounds.Y) : new Point (row.Bounds.X, clientLocation.Y);
1208
if (Orientation == Orientation.
Horizontal
&& (bounds.Width == 0)) {
1558
if (owner.Orientation == Orientation.
Horizontal
) {
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (2)
240
if (ToolStripPanelRow.Orientation == Orientation.
Horizontal
) {
269
if (ToolStripPanelRow.Orientation == Orientation.
Horizontal
) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (4)
140
rowManager = (Orientation == Orientation.
Horizontal
) ? new HorizontalRowManager(this) as ToolStripPanelRowManager
157
if (Orientation == Orientation.
Horizontal
) {
381
else if (Orientation == Orientation.
Horizontal
) {
671
if (Orientation == Orientation.
Horizontal
&& ParentInternal != null) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (10)
154
bool horizontal = (e.ToolStrip.Orientation == Orientation.
Horizontal
);
379
if (toolStrip.Orientation == Orientation.
Horizontal
) {
407
if (toolStrip.Orientation == Orientation.
Horizontal
) {
437
int height = (toolStrip.Orientation == Orientation.
Horizontal
) ? bounds.Height : bounds.Width;
438
int width = (toolStrip.Orientation == Orientation.
Horizontal
) ? bounds.Width : bounds.Height;
452
shadowRects[i] = (toolStrip.Orientation == Orientation.
Horizontal
) ?
969
RenderBackgroundGradient(g,control,beginColor,endColor,Orientation.
Horizontal
);
980
if (orientation == Orientation.
Horizontal
) {
1017
LinearGradientMode mode = (toolStrip.Orientation == Orientation.
Horizontal
) ? LinearGradientMode.Vertical : LinearGradientMode.Horizontal;
1060
bool horizontal = (e.ToolStrip.Orientation == Orientation.
Horizontal
);
winforms\Managed\System\WinForms\TrackBar.cs (10)
53
private Orientation orientation = System.Windows.Forms.Orientation.
Horizontal
;
108
if (orientation == Orientation.
Horizontal
) {
430
DefaultValue(Orientation.
Horizontal
),
440
if (!ClientUtils.IsEnumValid(value, (int)value, (int)Orientation.
Horizontal
, (int)Orientation.Vertical))
448
if (orientation == Orientation.
Horizontal
) {
810
if (orientation == Orientation.
Horizontal
)
895
if (orientation == Orientation.
Horizontal
&& RightToLeft == RightToLeft.Yes && !IsMirrored) {
1058
requestedDim = (orientation == Orientation.
Horizontal
)
1063
if (orientation == Orientation.
Horizontal
) {
1144
if (orientation == Orientation.
Horizontal
&& RightToLeft == RightToLeft.Yes && !IsMirrored) {
System.Workflow.ComponentModel (66)
AuthoringOM\Design\Connector.cs (44)
1128
Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.
Horizontal
: Orientation.Vertical;
1131
if (orientation == Orientation.
Horizontal
)
1137
Point editPointLocation = (orientation == Orientation.
Horizontal
) ? new Point(previous.Location.X + editPointOffset, previous.Location.Y) : new Point(previous.Location.X, previous.Location.Y + editPointOffset);
1145
Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.
Horizontal
: Orientation.Vertical;
1148
if (orientation == Orientation.
Horizontal
)
1154
Point editPointLocation = (orientation == Orientation.
Horizontal
) ? new Point(next.Location.X + editPointOffset, next.Location.Y) : new Point(next.Location.X, next.Location.Y + editPointOffset);
1192
Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.
Horizontal
: Orientation.Vertical;
1193
previous.Location = (orientation == Orientation.
Horizontal
) ? new Point(previous.Location.X, newPoint.Y) : new Point(newPoint.X, previous.Location.Y);
1197
orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.
Horizontal
: Orientation.Vertical;
1198
next.Location = (orientation == Orientation.
Horizontal
) ? new Point(next.Location.X, newPoint.Y) : new Point(newPoint.X, next.Location.Y);
1213
Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.
Horizontal
: Orientation.Vertical;
1216
if (orientation == Orientation.
Horizontal
)
1868
Orientation orientationA = Orientation.
Horizontal
;
1869
Orientation orientationB = Orientation.
Horizontal
;
2067
Nullable<Point> escapePoint = EscapeProcessI(coverSet, Z, v, Orientation.
Horizontal
, margin);
2079
orientationA = Orientation.
Horizontal
;
2117
orientationA = Orientation.
Horizontal
;
2132
Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.
Horizontal
,
2163
orientationA = Orientation.
Horizontal
;
2178
Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.
Horizontal
,
2212
ConnectorSegment lesserCover = coverSet.GetCover(Z, (orientation == Orientation.
Horizontal
) ? DesignerEdges.Left : DesignerEdges.Bottom);
2219
ConnectorSegment higherCover = coverSet.GetCover(Z, (orientation == Orientation.
Horizontal
) ? DesignerEdges.Right : DesignerEdges.Top);
2325
if (orientation == Orientation.
Horizontal
)
2327
escapePointI = EscapeProcessI(coverSet, R, v, Orientation.
Horizontal
, margin);
2353
escapePointI = EscapeProcessI(coverSet, R, v, Orientation.
Horizontal
, margin);
2484
ConnectorSegment b = ConnectorSegment.ConstructBoundSegment(coverSet, k, (a.Orientation == Orientation.
Horizontal
) ? Orientation.Vertical : Orientation.
Horizontal
);
2586
this.orientation = ((this.point1.X == this.point2.X) ? Orientation.Vertical : Orientation.
Horizontal
);
2618
return (this.orientation == Orientation.
Horizontal
) ? (p.X >= Math.Min(this.point1.X, this.point2.X) && p.X <= Math.Max(this.point1.X, this.point2.X)) : (p.Y >= Math.Min(this.point1.Y, this.point2.Y) && p.Y <= Math.Max(this.point1.Y, this.point2.Y));
2644
return (this.orientation == Orientation.
Horizontal
) ? p.Y == this.point1.Y : p.X == this.point1.X;
2650
if ((this.orientation == Orientation.
Horizontal
&& p.Y != this.point1.Y) || (this.orientation == Orientation.Vertical && p.X != this.point1.X))
2653
int k = (this.orientation == Orientation.
Horizontal
) ? p.X : p.Y;
2654
int k1 = (this.orientation == Orientation.
Horizontal
) ? this.point1.X : this.point1.Y;
2655
int k2 = (this.orientation == Orientation.
Horizontal
) ? this.point2.X : this.point2.Y;
2692
Orientation newOrientation = (this.orientation == Orientation.
Horizontal
) ? Orientation.Vertical : Orientation.
Horizontal
;
2694
if (newOrientation == Orientation.
Horizontal
)
2708
int k = (this.orientation == Orientation.
Horizontal
) ? p.X : p.Y;
2709
int k1 = (this.orientation == Orientation.
Horizontal
) ? this.point1.X : this.point1.Y;
2710
int k2 = (this.orientation == Orientation.
Horizontal
) ? this.point2.X : this.point2.Y;
2717
return new Point((this.orientation == Orientation.
Horizontal
) ? k : p.X, (this.orientation == Orientation.
Horizontal
) ? p.Y : k);
2733
return ConstructBoundSegment(coverSet, a, (a.X == b.X) ? Orientation.Vertical : Orientation.
Horizontal
);
2762
return (orientation == Orientation.
Horizontal
) ? SegmentFromLeftToRightCover(coverSet, a) : SegmentFromBottomToTopCover(coverSet, a);
AuthoringOM\Design\DesignerWidgets.cs (22)
125
: base(serviceProvider, Orientation.
Horizontal
, itemSize, Size.Empty)
146
DrawButton(graphics, (Orientation == Orientation.
Horizontal
) ? ScrollButton.Left : ScrollButton.Up);
149
DrawButton(graphics, (Orientation == Orientation.
Horizontal
) ? ScrollButton.Right : ScrollButton.Down);
159
if (Orientation == Orientation.
Horizontal
)
168
Size inflateSize = (Orientation == Orientation.
Horizontal
) ? new Size(0, 2) : new Size(2, 0);
275
if (orientation == Orientation.
Horizontal
)
335
if (this.orientation == Orientation.
Horizontal
)
364
if (this.orientation == Orientation.
Horizontal
)
485
if (this.orientation == Orientation.
Horizontal
)
510
ScrollButton scrollButton = (this.orientation == Orientation.
Horizontal
) ? ScrollButton.Left : ScrollButton.Up;
518
ScrollButton scrollButton = (this.orientation == Orientation.
Horizontal
) ? ScrollButton.Right : ScrollButton.Down;
713
if (this.orientation == Orientation.
Horizontal
)
752
if (this.orientation == Orientation.
Horizontal
)
839
if (this.orientation == Orientation.
Horizontal
)
1486
this.tabStrip = new TabStrip(Orientation.
Horizontal
, SystemInformation.HorizontalScrollBarHeight);
1687
private Orientation orientation = Orientation.
Horizontal
;
1925
if (this.orientation == Orientation.
Horizontal
)
1954
int maxTotalTabItemSize = ((this.orientation == Orientation.
Horizontal
) ? Width : Height);
1987
if (this.orientation == Orientation.
Horizontal
)
2014
int lastItemWidth = (this.orientation == Orientation.
Horizontal
) ? lastItemStruct.TabItemRectangle.Width - itemSizeDecrease : lastItemStruct.TabItemRectangle.Height - itemSizeDecrease;
2020
if (this.orientation == Orientation.
Horizontal
)
2110
if (this.orientation == Orientation.
Horizontal
)