Rectangle
Contents
[
Hide
]Rectangle structure
Stores a set of four integers that represent the location and size of a rectangle.
public struct Rectangle
Constructors
| Name | Description |
|---|---|
| Rectangle(int, int, int, int) | Initializes a new instance of the Rectangle structure with the specified location and size. |
Properties
| Name | Description |
|---|---|
| static Empty { get; } | Gets a new instance of the Rectangle structure that has X, Y, Width and Height values set to zero. |
| Bottom { get; set; } | Gets or sets the y-coordinate that is the sum of the Y and Height property values of this Rectangle structure. |
| IsEmpty { get; } | Gets a value indicating whether all numeric properties of this Rectangle have values of zero. |
| Left { get; set; } | Gets or sets the x-coordinate of the left edge of this Rectangle structure. |
| Right { get; set; } | Gets or sets the x-coordinate that is the sum of X and Width property values of this Rectangle structure. |
| Top { get; set; } | Gets or sets the y-coordinate of the top edge of this Rectangle structure. |
Methods
| Name | Description |
|---|---|
| Contains(int, int) | Determines if the specified point is contained within this Rectangle structure. |
| override Equals(object) | Tests whether obj is a Rectangle structure with the same location and size of this Rectangle structure. |
| override GetHashCode() | Returns the hash code for this Rectangle structure. |
| override ToString() | Converts the attributes of this Rectangle to a human-readable string. |
| operator == | Tests whether two Rectangle structures have equal location and size. |
| operator != | Tests whether two Rectangle structures differ in location or size. |
Fields
| Name | Description |
|---|---|
| Height | The rectangle width. |
| Width | The rectangle height. |
| X | The rectangle x location. |
| Y | The rectangle y location. |
See Also
- namespace Aspose.OCR
- assembly Aspose.OCR