1 write to orientation
System.Workflow.ComponentModel (1)
AuthoringOM\Design\Connector.cs (1)
2586this.orientation = ((this.point1.X == this.point2.X) ? Orientation.Vertical : Orientation.Horizontal);
17 references to orientation
System.Workflow.ComponentModel (17)
AuthoringOM\Design\Connector.cs (17)
2609return this.orientation; 2618return (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)); 2626if (this.orientation == segment.Orientation) 2629ConnectorSegment vertical = (this.orientation == Orientation.Vertical) ? this : segment; 2630ConnectorSegment horizontal = (this.orientation == Orientation.Vertical) ? segment : this; 2644return (this.orientation == Orientation.Horizontal) ? p.Y == this.point1.Y : p.X == this.point1.X; 2650if ((this.orientation == Orientation.Horizontal && p.Y != this.point1.Y) || (this.orientation == Orientation.Vertical && p.X != this.point1.X)) 2653int k = (this.orientation == Orientation.Horizontal) ? p.X : p.Y; 2654int k1 = (this.orientation == Orientation.Horizontal) ? this.point1.X : this.point1.Y; 2655int k2 = (this.orientation == Orientation.Horizontal) ? this.point2.X : this.point2.Y; 2692Orientation newOrientation = (this.orientation == Orientation.Horizontal) ? Orientation.Vertical : Orientation.Horizontal; 2708int k = (this.orientation == Orientation.Horizontal) ? p.X : p.Y; 2709int k1 = (this.orientation == Orientation.Horizontal) ? this.point1.X : this.point1.Y; 2710int k2 = (this.orientation == Orientation.Horizontal) ? this.point2.X : this.point2.Y; 2717return new Point((this.orientation == Orientation.Horizontal) ? k : p.X, (this.orientation == Orientation.Horizontal) ? p.Y : k);