Export (0) Print
Expand All

Rect Methods

The Rect type exposes the following members.

  Name Description
Public method Contains(Point) Indicates whether the rectangle contains the specified point.
Public method Contains(Rect) Indicates whether the rectangle contains the specified rectangle.
Public method Contains(Double, Double) Indicates whether the rectangle contains the specified x-coordinate and y-coordinate.
Public method Equals(Object) Indicates whether the specified object is equal to the current rectangle. (Overrides ValueType.Equals(Object).)
Public method Equals(Rect) Indicates whether the specified rectangle is equal to the current rectangle.
Public method Static member Equals(Rect, Rect) Indicates whether the specified rectangles are equal.
Public method GetHashCode Creates a hash code for the rectangle. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Inflate(Size) Expands the rectangle by using the specified Size, in all directions.
Public method Inflate(Double, Double) Expands or shrinks the rectangle by using the specified width and height amounts, in all directions.
Public method Static member Inflate(Rect, Size) Returns the rectangle that results from expanding the specified rectangle by the specified Size, in all directions.
Public method Static member Inflate(Rect, Double, Double) Creates a rectangle that results from expanding or shrinking the specified rectangle by the specified width and height amounts, in all directions.
Public method Intersect(Rect) Finds the intersection of the current rectangle and the specified rectangle, and stores the result as the current rectangle.
Public method Static member Intersect(Rect, Rect) Returns the intersection of the specified rectangles.
Public method IntersectsWith Indicates whether the specified rectangle intersects with the current rectangle.
Public method Offset(Vector) Moves the rectangle by the specified vector.
Public method Offset(Double, Double) Moves the rectangle by the specified horizontal and vertical amounts.
Public method Static member Offset(Rect, Vector) Returns a rectangle that is offset from the specified rectangle by using the specified vector.
Public method Static member Offset(Rect, Double, Double) Returns a rectangle that is offset from the specified rectangle by using the specified horizontal and vertical amounts.
Public method Static member Parse Creates a new rectangle from the specified string representation.
Public method Scale Multiplies the size of the current rectangle by the specified x and y values.
Public method ToString() Returns a string representation of the rectangle. (Overrides ValueType.ToString().)
Public method ToString(IFormatProvider) Returns a string representation of the rectangle by using the specified format provider.
Public method Transform(Matrix) Transforms the rectangle by applying the specified matrix.
Public method Static member Transform(Rect, Matrix) Returns the rectangle that results from applying the specified matrix to the specified rectangle.
Public method Union(Point) Expands the current rectangle exactly enough to contain the specified point.
Public method Union(Rect) Expands the current rectangle exactly enough to contain the specified rectangle.
Public method Static member Union(Rect, Point) Creates a rectangle that is exactly large enough to include the specified rectangle and the specified point.
Public method Static member Union(Rect, Rect) Creates a rectangle that is exactly large enough to contain the two specified rectangles.
Top

  Name Description
Explicit interface implemetation Private method IFormattable.ToString Formats the value of the current instance using the specified format.
Top
Show:
© 2014 Microsoft