239 references to Orientation
System.Windows.Forms (123)
winforms\Managed\System\WinForms\ArrowDirection.cs (4)
22
Up = 0x00 | (int)
Orientation
.Vertical,
24
Down = 0x10 | (int)
Orientation
.Vertical,
26
Left = 0x00 | (int)
Orientation
.Horizontal,
28
Right =0x10 | (int)
Orientation
.Horizontal,
winforms\Managed\System\WinForms\SplitContainer.cs (36)
61
private
Orientation
orientation =
Orientation
.Vertical;
488
if (Orientation ==
Orientation
.Vertical) {
526
if (Orientation ==
Orientation
.Vertical) {
551
DefaultValue(
Orientation
.Vertical),
555
public
Orientation
Orientation {
559
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
Orientation
.Horizontal, (int)
Orientation
.Vertical)){
560
throw new InvalidEnumArgumentException("value", (int)value, typeof(
Orientation
));
802
if (Orientation ==
Orientation
.Vertical) {
844
if (Orientation ==
Orientation
.Vertical) {
1158
if (Orientation ==
Orientation
.Vertical) {
1259
if (Orientation ==
Orientation
.Vertical) {
1275
if (Orientation ==
Orientation
.Vertical) {
1373
SetSplitterRect(this.Orientation ==
Orientation
.Vertical);
1446
if (Orientation==
Orientation
.Vertical) {
1451
else if (Orientation ==
Orientation
.Horizontal) {
1470
if (Orientation ==
Orientation
.Vertical) {
1476
else if (Orientation ==
Orientation
.Horizontal) {
1494
if (Orientation ==
Orientation
.Vertical) {
1500
else if (Orientation ==
Orientation
.Horizontal) {
1527
if (Orientation ==
Orientation
.Vertical) {
1550
case
Orientation
.Vertical:
1567
case
Orientation
.Horizontal:
1652
if (Orientation ==
Orientation
.Vertical) {
1664
case
Orientation
.Vertical:
1673
case
Orientation
.Horizontal:
1677
if (Orientation ==
Orientation
.Vertical) {
1765
if (Orientation ==
Orientation
.Vertical)
1810
else if (Orientation ==
Orientation
.Horizontal) {
1890
if (orientation ==
Orientation
.Vertical) {
2140
if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && Orientation ==
Orientation
.Horizontal) {
2148
if ((specified & BoundsSpecified.Width) != BoundsSpecified.None && Orientation ==
Orientation
.Vertical) {
2157
SetSplitterRect(this.Orientation ==
Orientation
.Vertical);
2203
if (Orientation ==
Orientation
.Vertical)
2258
if (Orientation ==
Orientation
.Vertical) {
winforms\Managed\System\WinForms\StatusStrip.cs (6)
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 (20)
78
private
Orientation
orientation =
Orientation
.Horizontal;
701
if (Orientation ==
Orientation
.Vertical) {
853
if (Orientation ==
Orientation
.Horizontal) {
1341
case
Orientation
.Horizontal:
1343
case
Orientation
.Vertical:
1363
UpdateOrientation(
Orientation
.Horizontal);
1371
UpdateOrientation(
Orientation
.Horizontal);
1379
UpdateOrientation((value == ToolStripLayoutStyle.VerticalStackWithOverflow) ?
Orientation
.Vertical :
Orientation
.Horizontal);
1543
public
Orientation
Orientation {
3192
if (IsDropDown || Orientation !=
Orientation
.Horizontal) {
3936
if (Orientation ==
Orientation
.Horizontal) {
4288
if (Orientation ==
Orientation
.Horizontal) {
4648
UpdateOrientation(
Orientation
.Vertical);
4651
UpdateOrientation(
Orientation
.Horizontal);
4663
private void UpdateLayoutStyle(
Orientation
newRaftingRowOrientation) {
4691
private void UpdateOrientation(
Orientation
newOrientation) {
5543
if (owner.Orientation ==
Orientation
.Horizontal) {
5560
if (owner.Orientation ==
Orientation
.Vertical) {
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 (15)
33
private
Orientation
orientation =
Orientation
.Horizontal;
197
Orientation =
Orientation
.Vertical;
200
Orientation =
Orientation
.Horizontal;
242
public
Orientation
Orientation {
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);
1144
if (Orientation ==
Orientation
.Vertical) {
1208
if (Orientation ==
Orientation
.Horizontal && (bounds.Width == 0)) {
1211
else if (Orientation ==
Orientation
.Vertical && (bounds.Height == 0)) {
1558
if (owner.Orientation ==
Orientation
.Horizontal) {
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (4)
135
if (ToolStripPanelRow.Orientation ==
Orientation
.Vertical) {
240
if (ToolStripPanelRow.Orientation ==
Orientation
.Horizontal) {
269
if (ToolStripPanelRow.Orientation ==
Orientation
.Horizontal) {
304
if (ToolStripPanelRow.Orientation ==
Orientation
.Vertical) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (5)
140
rowManager = (Orientation ==
Orientation
.Horizontal) ? new HorizontalRowManager(this) as ToolStripPanelRowManager
157
if (Orientation ==
Orientation
.Horizontal) {
254
public
Orientation
Orientation {
381
else if (Orientation ==
Orientation
.Horizontal) {
671
if (Orientation ==
Orientation
.Horizontal && ParentInternal != null) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (11)
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);
972
private void RenderBackgroundGradient(Graphics g, Control control, Color beginColor, Color endColor,
Orientation
orientation) {
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 (17)
53
private
Orientation
orientation = System.Windows.Forms.
Orientation
.Horizontal;
108
if (orientation ==
Orientation
.Horizontal) {
219
if (orientation ==
Orientation
.Vertical) {
430
DefaultValue(
Orientation
.Horizontal),
434
public
Orientation
Orientation {
440
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
Orientation
.Horizontal, (int)
Orientation
.Vertical))
442
throw new InvalidEnumArgumentException("value", (int)value, typeof(
Orientation
));
448
if (orientation ==
Orientation
.Horizontal) {
810
if (orientation ==
Orientation
.Horizontal)
888
if (orientation ==
Orientation
.Vertical) {
895
if (orientation ==
Orientation
.Horizontal && RightToLeft == RightToLeft.Yes && !IsMirrored) {
1058
requestedDim = (orientation ==
Orientation
.Horizontal)
1063
if (orientation ==
Orientation
.Horizontal) {
1138
if (orientation ==
Orientation
.Vertical) {
1144
if (orientation ==
Orientation
.Horizontal && RightToLeft == RightToLeft.Yes && !IsMirrored) {
System.Workflow.ComponentModel (116)
AuthoringOM\Design\Connector.cs (83)
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;
1910
Orientation
tempOrientation = orientationA;
1952
Orientation
tempOrientation = orientationA;
2016
ref
Orientation
orientationA, out ConnectorSegment intersectionSegmentA, out ConnectorSegment intersectionSegmentB, Size margin, ref bool noEscapeA)
2067
Nullable<Point> escapePoint = EscapeProcessI(coverSet, Z, v,
Orientation
.Horizontal, margin);
2070
orientationA =
Orientation
.Vertical;
2076
escapePoint = EscapeProcessI(coverSet, Z, h,
Orientation
.Vertical, margin);
2079
orientationA =
Orientation
.Horizontal;
2109
Nullable<Point> escape = EscapeProcessII(coverSet,
Orientation
.Vertical,
2117
orientationA =
Orientation
.Horizontal;
2132
Nullable<Point> escape = EscapeProcessII(coverSet,
Orientation
.Horizontal,
2140
orientationA =
Orientation
.Vertical;
2155
Nullable<Point> escape = EscapeProcessII(coverSet,
Orientation
.Vertical,
2163
orientationA =
Orientation
.Horizontal;
2178
Nullable<Point> escape = EscapeProcessII(coverSet,
Orientation
.Horizontal,
2186
orientationA =
Orientation
.Vertical;
2204
ConnectorSegment escapeLine,
Orientation
orientation, Size margin)
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);
2234
if (((orientation ==
Orientation
.Vertical) ? direction.X : direction.Y) == 0)
2244
if (orientation ==
Orientation
.Vertical)
2252
if ((orientation ==
Orientation
.Vertical))
2281
private static Nullable<Point> EscapeProcessII(CoverSet coverSet,
Orientation
orientation, ref List<Point> LeA,
2325
if (orientation ==
Orientation
.Horizontal)
2327
escapePointI = EscapeProcessI(coverSet, R, v,
Orientation
.Horizontal, margin);
2335
escapePointI = EscapeProcessI(coverSet, R, h,
Orientation
.Vertical, margin);
2345
escapePointI = EscapeProcessI(coverSet, R, h,
Orientation
.Vertical, 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);
2577
private
Orientation
orientation;
2586
this.orientation = ((this.point1.X == this.point2.X) ?
Orientation
.Vertical :
Orientation
.Horizontal);
2605
public
Orientation
Orientation
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));
2629
ConnectorSegment vertical = (this.orientation ==
Orientation
.Vertical) ? this : segment;
2630
ConnectorSegment horizontal = (this.orientation ==
Orientation
.Vertical) ? segment : this;
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);
2760
public static ConnectorSegment ConstructBoundSegment(CoverSet coverSet, Point a,
Orientation
orientation)
2762
return (orientation ==
Orientation
.Horizontal) ? SegmentFromLeftToRightCover(coverSet, a) : SegmentFromBottomToTopCover(coverSet, a);
2809
List<ConnectorSegment> covers = (cover.Orientation ==
Orientation
.Vertical) ? this.verticalCovers : this.horizontalCovers;
AuthoringOM\Design\DesignerWidgets.cs (33)
125
: base(serviceProvider,
Orientation
.Horizontal, itemSize, Size.Empty)
129
protected override ItemStrip CreateItemStrip(IServiceProvider serviceProvider,
Orientation
orientation, Size itemSize, Size margin)
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);
186
public PageItemStrip(IServiceProvider serviceProvider,
Orientation
orientation, Size itemSize, Size margin)
260
private
Orientation
orientation;
265
public ScrollableItemStrip(IServiceProvider serviceProvider,
Orientation
orientation, Size itemSize, Size margin)
275
if (orientation ==
Orientation
.Horizontal)
335
if (this.orientation ==
Orientation
.Horizontal)
364
if (this.orientation ==
Orientation
.Horizontal)
394
public
Orientation
Orientation
471
protected abstract ItemStrip CreateItemStrip(IServiceProvider serviceProvider,
Orientation
orientation, Size itemSize, Size margin);
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;
573
private
Orientation
orientation;
580
public ItemStrip(IServiceProvider serviceProvider,
Orientation
orientation, Size itemSize, Size margin)
713
if (this.orientation ==
Orientation
.Horizontal)
752
if (this.orientation ==
Orientation
.Horizontal)
839
if (this.orientation ==
Orientation
.Horizontal)
1464
this.tabStrip = new TabStrip(
Orientation
.Vertical, SystemInformation.VerticalScrollBarWidth);
1486
this.tabStrip = new TabStrip(
Orientation
.Horizontal, SystemInformation.HorizontalScrollBarHeight);
1687
private
Orientation
orientation =
Orientation
.Horizontal;
1695
public TabStrip(
Orientation
orientation, int tabSize)
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)