[]
Describes the width, height, and point origin of a rectangle.
public sealed class C1Rect : ValueType
| Name | Description |
|---|---|
| C1Rect(C1Point, C1Point) | Initializes a C1Rect structure that is exactly large enough to contain the two specified points. |
| C1Rect(C1Point, C1Size) | Initializes a C1Rect structure based on an origin and size. |
| C1Rect(double, double, double, double) | Initializes a C1Rect structure that has the specified x-coordinate, y-coordinate, width, and height. |
| Name | Description |
|---|---|
| Bottom | Gets the y-axis value of the bottom of the rectangle. |
| Empty | Gets a special value that represents a rectangle with no position or area. |
| Height | Gets or sets the height of the rectangle. |
| IsEmpty | Gets a value that indicates whether the rectangle is the C1Rect.Empty rectangle. |
| Left | Gets the x-axis value of the left side of the rectangle. |
| Right | Gets the x-axis value of the right side of the rectangle. |
| Top | Gets the y-axis position of the top of the rectangle. |
| Width | Gets or sets the width of the rectangle. |
| X | Gets or sets the x-axis value of the left side of the rectangle. |
| Y | Gets or sets the y-axis value of the top side of the rectangle. |
| Name | Description |
|---|---|
| Contains(C1Point) | Indicates whether the rectangle described by the C1Rect contains the specified point. |
| Equals(object) | Determines whether the specified object, is equal to this instance. |
| GetHashCode() | Returns a hash code for this instance. |
| Inflate(C1Size) | Returns the rectangle that results from expanding the specified rectangle by the specified Size, in all directions. |
| Inflate(double, double) | Inflates the rectangle that results from expanding the specified rectangle by the specified width and height, in all directions. |
| Intersect(C1Rect) | Finds the intersection of the rectangle represented by the C1Rect and the rectangle represented by the specified C1Rect, and stores the result as the current C1Rect. |
| ToString() | Gets a string representation of C1Rect |
| Union(C1Point) | Expands the rectangle represented by the current C1Rect exactly enough to contain the specified point. |
| Union(C1Rect) | Expands the rectangle represented by the current C1Rect exactly enough to contain the specified rectangle. |
| Union(C1Rect, C1Rect) | Returns a new rectangle exactly enough to contain the specified rectangles. |
| Name | Description |
|---|---|
| operator ==(C1Rect, C1Rect) | Compares two C1Rect structures for equality. |
| operator !=(C1Rect, C1Rect) | Compares two C1Rect structures for inequality. |