public class Rectangle extends com.aspose.ms.lang.Struct<Rectangle>
Class Rectangle.
Constructor and Description |
---|
Rectangle() |
Rectangle(double x,
double y,
double width,
double height) |
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.
|
int |
hashCode() |
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(double x, double y, double width, double height)
public float getX()
Gets or sets the x.
Value: The x.public void setX(float value)
Gets or sets the x.
Value: The x.value
- public float getY()
Gets or sets the y.
Value: The y.public void setY(float value)
Gets or sets the y.
Value: The y.value
- public float getWidth()
Gets or sets the width.
Value: The width.public void setWidth(float value)
Gets or sets the width.
Value: The width.value
- public float getHeight()
Gets or sets the height.
Value: The height.public void setHeight(float value)
Gets or sets the height.
Value: The height.value
- 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>
Copyright © 2018. All rights reserved.