| Constructor and Description |
|---|
Size() |
Size(int width,
int height)
Initializes a new instance of the
Size struct from the specified dimensions. |
Size(Point pt)
|
| Modifier and Type | Method and Description |
|---|---|
static Size |
add(Size sz1,
Size sz2)
|
static Size |
ceiling(SizeF value)
|
Size |
clone() |
Size |
Clone() |
void |
CloneTo(Size that) |
boolean |
equals(Object obj)
|
boolean |
equals(Size other)
|
static Size |
getEmpty() |
int |
getHeight()
Gets the vertical component of this
Size. |
int |
getWidth()
Gets the horizontal component of this
Size. |
int |
hashCode()
Returns a hash code for this
Size structure. |
boolean |
isEmpty()
Gets a value indicating whether this
Size has width and height of 0. |
static boolean |
isEquals(Size obj1,
Size obj2) |
static Size |
op_Addition(Size sz1,
Size sz2)
|
static SizeF |
op_Division(Size left,
float right)
|
static Size |
op_Division(Size left,
int right)
|
static boolean |
op_Equality(Size sz1,
Size sz2)
Tests whether two
Size structures are equal. |
static boolean |
op_Inequality(Size sz1,
Size sz2)
Tests whether two
Size structures are different. |
static SizeF |
op_Multiply(float left,
Size right)
|
static Size |
op_Multiply(int left,
Size right)
|
static SizeF |
op_Multiply(Size left,
float right)
|
static Size |
op_Multiply(Size left,
int right)
|
static Size |
op_Subtraction(Size sz1,
Size sz2)
|
static Size |
round(SizeF value)
|
void |
setHeight(int value)
Sets the vertical component of this
Size. |
void |
setWidth(int value)
Sets the horizontal component of this
Size. |
static Size |
subtract(Size sz1,
Size sz2)
|
static Point |
to_Point(Size size)
|
static SizeF |
to_SizeF(Size p)
|
String |
toString() |
static Size |
truncate(SizeF value)
|
public static boolean op_Equality(Size sz1, Size sz2)
Tests whether two Size structures are equal.
public static boolean op_Inequality(Size sz1, Size sz2)
Tests whether two Size structures are different.
public static Size getEmpty()
public final boolean isEmpty()
Gets a value indicating whether this Size has width and height of 0.
Size has width and height of 0.public final int getWidth()
Gets the horizontal component of this Size.
Size.public final void setWidth(int value)
Sets the horizontal component of this Size.
value - the horizontal component of this Size.public final int getHeight()
Gets the vertical component of this Size.
Size.public final void setHeight(int value)
Sets the vertical component of this Size.
value - the vertical component of this Size.public boolean equals(Object obj)
public int hashCode()
Returns a hash code for this Size structure.
public final boolean equals(Size other)
public void CloneTo(Size that)
CloneTo in class com.aspose.ms.System.ValueType<Size>Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.