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