public class Rectangle extends com.aspose.ms.lang.Struct<Rectangle>
A set of four integers that represent the location and size of a rectangle.
Constructor and Description |
---|
Rectangle() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Rectangle |
Clone() |
void |
CloneTo(Rectangle that) |
boolean |
equals(Object obj) |
static boolean |
equals(Rectangle obj1,
Rectangle obj2) |
int |
getBottom()
Gets the y-coordinate that is the sum of the Y and Height property values of the rectangle.
|
static Rectangle |
getEmpty()
Gets the empty rectangle.
|
int |
getHeight()
Gets the height.
|
int |
getLeft()
Gets the x-coordinate of the left edge of the rectangle.
|
int |
getRight()
Gets the x-coordinate that is the sum of X and Width property values of the rectangle.
|
int |
getTop()
Gets the y-coordinate that is the sum of the Y and Height property values of the rectangle.
|
int |
getWidth()
Gets the width.
|
int |
getX()
Gets the x.
|
int |
getY()
Gets the y.
|
boolean |
isEmpty()
Gets a value indicating whether this instance is empty.
|
String |
toString()
Returns a
System.String that represents this instance. |
public static Rectangle getEmpty()
Gets the empty rectangle.
public final int getX()
Gets the x.
public final int getY()
Gets the y.
public final int getWidth()
Gets the width.
public final int getHeight()
Gets the height.
public final int getLeft()
Gets the x-coordinate of the left edge of the rectangle.
public final int getTop()
Gets the y-coordinate that is the sum of the Y and Height property values of the rectangle.
public final int getRight()
Gets the x-coordinate that is the sum of X and Width property values of the rectangle.
public final int getBottom()
Gets the y-coordinate that is the sum of the Y and Height property values of the rectangle.
public final boolean isEmpty()
Gets a value indicating whether this instance is empty.
true
if this instance is empty; otherwise, false
.public String toString()
Returns a System.String
that represents this instance.
public void CloneTo(Rectangle that)
CloneTo
in class com.aspose.ms.System.ValueType<Rectangle>
public Rectangle Clone()
Clone
in class com.aspose.ms.System.ValueType<Rectangle>