Ant Organisation Ltd documentation

Rect Members

Rect overview

Public Static Fields

AllDirections Gets an array of all the available directions
Empty Returns an empty rectangle

Public Static Methods

IsVerticalTests whether a given direction is vertical.
OppositeDirection Gets the opposite direction from the one supplied

Public Instance Constructors

RectOverloaded. Initializes a new instance of the Rect class.

Public Instance Properties

BottomGets or sets the y-coordinate of the lower-right corner of the rectangle.
BottomLeftGets the bottom-left corner point of the Rect.
BottomRightGets the bottom-right corner point of the Rect.
CentreGets the centre-point of the Rect.
CentreXGets the x-coordinate of the centre-point of the Rect.
CentreYGets the Y-coordinate of the centre-point of the Rect.
HeightGets the height of the rectangle.
LeftGets or sets the x-coordinate of the upper-left corner of the rectangle.
RightGets or sets the x-coordinate of the lower-right corner of the rectangle.
TopGets or sets the y-coordinate of the upper-left corner of the rectangle.
TopLeftGets the top-left corner point of the Rect.
TopRightGets the top-right corner point of the Rect.
WidthGets the width of the rectangle.
XGets the x-coordinate of the upper-left corner of the rectangle.
YGets the y-coordinate of the upper-left corner of the rectangle.

Public Instance Methods

AsRectangleReturns a Drawing.Rectangle object equivalent to this.
CloneCreates a new instance of Rect identical to this one.
ContainsOverloaded. Tests whether a given point is contained within this rectangle.
Equals Returns true if the two objects are equals
ExpandExpands the Rect in all directions by the specified distance.
ExpandToIncludeOverloaded. Expands this Rect to include the specified point.
GetCoordinateGets a specific coordinate.
GetHashCode Gets the hash code
GetLine Gets the line which represents the side
GetType (inherited from Object)Gets the Type of the current instance.
IntersectBoundaryExtends or contracts the end-point of the given line to be on the boundary.
IntersectsWithOverloaded. Tests whether a rectangle intersects this rectangle.
IsEmptyTests whether this Rect has a width or height of zero.
NearestBoundaryPointReturns the nearest boundary point to the specified point.
ProjectOntoLineProjects this rectangle onto the specified line.
ToString Converts the object to a string

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

Rect Class | Ant.Workflow.View.TransitionRouting Namespace