public class Rectangle extends com.aspose.ms.lang.Struct<Rectangle>
Represents rectangle.
Constructor and Description |
---|
Rectangle() |
Rectangle(float x,
float y,
float width,
float height)
Initializes a new instance of the
Rectangle struct. |
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) |
float |
getHeight()
Gets or sets the height.
|
float |
getWidth()
Gets or sets the width.
|
float |
getX()
Gets or sets the x.
|
float |
getY()
Gets or sets the y.
|
void |
setHeight(float value)
Gets or sets the height.
|
void |
setWidth(float value)
Gets or sets the width.
|
void |
setX(float value)
Gets or sets the x.
|
void |
setY(float value)
Gets or sets the y.
|
String |
toString() |
public Rectangle()
public Rectangle(float x, float y, float width, float height)
Initializes a new instance of the Rectangle
struct.
x
- The x.y
- The y.width
- The width.height
- The height.public Rectangle Clone()
Clone
in class com.aspose.ms.System.ValueType<Rectangle>
public void CloneTo(Rectangle that)
CloneTo
in class com.aspose.ms.System.ValueType<Rectangle>
public final float getHeight()
Gets or sets the height.
Value: The height.public final float getWidth()
Gets or sets the width.
Value: The width.public final float getX()
Gets or sets the x.
Value: The x.public final float getY()
Gets or sets the y.
Value: The y.public final void setHeight(float value)
Gets or sets the height.
Value: The height.value
- public final void setWidth(float value)
Gets or sets the width.
Value: The width.value
- public final void setX(float value)
Gets or sets the x.
Value: The x.value
- public final void setY(float value)
Gets or sets the y.
Value: The y.value
-