| XRect Methods |
The XRect type exposes the following members.
| Name | Description | |
|---|---|---|
| Contains(XPoint) |
Indicates whether the rectangle contains the specified point.
|
|
| Contains(XRect) |
Indicates whether the rectangle contains the specified rectangle.
|
|
| Contains(Double, Double) |
Indicates whether the rectangle contains the specified point.
|
|
| Equals(Object) |
Determines whether this instance and the specified object are equal.
(Overrides ValueType
Equals(Object).)
|
|
| Equals(XRect) |
Determines whether this instance and the specified rect are equal.
|
|
| Equals(XRect, XRect) |
Determines whether the two rectangles are equal.
|
|
| FromLTRB |
Creates a rectangle from for straight lines.
|
|
| GetHashCode |
Returns the hash code for this instance.
(Overrides ValueType
GetHashCode
.)
|
|
| GetType | (Inherited from Object.) | |
| Inflate(XSize) |
Expands the rectangle by using the specified Size, in all directions.
|
|
| Inflate(Double, Double) |
Expands or shrinks the rectangle by using the specified width and height amounts, in all directions.
|
|
| Inflate(XRect, XSize) |
Returns the rectangle that results from expanding the specified rectangle by the specified Size, in all directions.
|
|
| Inflate(XRect, Double, Double) |
Creates a rectangle that results from expanding or shrinking the specified rectangle by the specified width and height amounts, in all directions.
|
|
| Intersect(XRect) |
Sets current rectangle to the intersection of the current rectangle and the specified rectangle.
|
|
| Intersect(XRect, XRect) |
Returns the intersection of two rectangles.
|
|
| IntersectsWith |
Indicates whether the specified rectangle intersects with the current rectangle.
|
|
| Offset(XVector) |
Moves a rectangle by the specified amount.
|
|
| Offset(Double, Double) |
Moves a rectangle by the specified amount.
|
|
| Offset(XRect, XVector) |
Returns a rectangle that is offset from the specified rectangle by using the specified vector.
|
|
| Offset(XRect, Double, Double) |
Returns a rectangle that is offset from the specified rectangle by using specified horizontal and vertical amounts.
|
|
| Parse |
Parses the rectangle from a string.
|
|
| Scale |
Multiplies the size of the current rectangle by the specified x and y values.
|
|
| ToString |
Converts this XRect to a human readable string.
(Overrides ValueType
ToString
.)
|
|
| ToString(IFormatProvider) |
Converts this XRect to a human readable string.
|
|
| Transform(XMatrix) |
Transforms the rectangle by applying the specified matrix.
|
|
| Transform(XRect, XMatrix) |
Returns the rectangle that results from applying the specified matrix to the specified rectangle.
|
|
| Union(XPoint) |
Sets current rectangle to the union of the current rectangle and the specified point.
|
|
| Union(XRect) |
Sets current rectangle to the union of the current rectangle and the specified rectangle.
|
|
| Union(XRect, XPoint) |
Returns the intersection of a rectangle and a point.
|
|
| Union(XRect, XRect) |
Returns the union of two rectangles.
|