[]
Defines a RectL. This structure is slightly different from System.Drawing.Rectangle as
it is internally storing Left, Top, Right, Bottom instead of Left, Top, Width, Height.
public struct RectL : IEquatable<RectL>
| Name | Description |
|---|---|
| RectL(int, int) | Initializes a new instance of the RectL struct. |
| RectL(int, int, int, int) | Initializes a new instance of the RectL struct. |
| Name | Description |
|---|---|
| Bottom | The y-coordinate of the bottom edge. |
| Empty | An empty rectangle. |
| Infinite | An infinite rectangle. |
| Left | The x-coordinate of the left edge. |
| Right | The x-coordinate of the right edge. |
| SizeInBytes | The size of the RectL type, in bytes. |
| Top | The y-coordinate of the top edge. |
| Name | Description |
|---|---|
| HasSpace | Determines if there is some space within the rectangle. |
| Height | Gets or sets the height of the rectangle. |
| IsEmpty | Determines if all components of RectL are equal to zero. |
| Location | Gets the point with coordinates of the left top corner of the rectangle. |
| Size | Gets the size of the rectangle. |
| Width | Gets or sets the width of the rectangle. |
| X | Gets or sets the X coordinate of the rectangle. |
| Y | Gets or sets the Y coordinate of the rectangle. |
| Name | Description |
|---|---|
| Contains(RectL) | Determines if the specified rectangle is fully contained within this rectangle. |
| Contains(int, int) | Determines if the specified point is contained within this rectangle. |
| ContainsRef(ref RectL) | Determines if the specified rectangle is fully contained within this rectangle. |
| Equals(RectL) | Indicates whether this instance and a specified object are equal. |
| Equals(object) | Indicates whether this instance and a specified object are equal. |
| EqualsRef(ref RectL) | Indicates whether this instance and a specified object are equal. |
| FromLTRB(int, int, int, int) | Creates a RectL struct from (left, top, right, bottom) coordinates. |
| GetHashCode() | Returns a hash code for this instance. |
| Inflate(RectL, int, int) | Inflates the rectangle by the specified amount. |
| Inflate(int, int) | Inflates the rectangle by the specified amount. |
| Intersect(RectL, RectL) | Returns a rectangle that represents the intersection of two rectangles. |
| IntersectFast(ref RectL) | Quickly updates a rectangle to represent the intersection with another rectangle. |
| IntersectRef(out RectL, ref RectL, ref RectL) | Returns a rectangle that represents the intersection of two rectangles. |
| IntersectsWith(RectL) | Determines if this rectangle intersects with rect. |
| IntersectsWithRef(ref RectL) | Determines if this rectangle intersects with rect. |
| MakeLTRB() | Converts the rectangle from (X, Y, Width, Height) to (Left, Top, Right, Bottom) coordinates. |
| MakeXYWH() | Converts the rectangle from (Left, Top, Right, Bottom) to (X, Y, Width, Height) coordinates. |
| Offset(RectL, Size2L) | Offsets the rectangle by the specified amount. |
| Offset(RectL, int, int) | Offsets the rectangle by the specified amount. |
| Offset(int, int) | Offsets the rectangle by the specified amount. |
| ToRectD() | |
| ToRectF() | |
| ToString() | Returns a string that represents the current object. |
| Union(RectL, RectL) | Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. |
| UnionRef(out RectL, ref RectL, ref RectL) | Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. |
| Name | Description |
|---|---|
| operator ==(RectL, RectL) | Determines if the specified values are equal. |
| operator !=(RectL, RectL) | Determines if the specified values are not equal. |