Modifier and Type | Field and Description |
---|---|
static Margins |
Empty
The empty margins.
|
Constructor and Description |
---|
Margins() |
Margins(float left,
float right,
float top,
float bottom)
Initializes a new instance of the
Margins struct
with the specified left, right, top, and bottom margins. |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Margins |
Clone() |
void |
CloneTo(Margins that) |
boolean |
equals(Margins other) |
static boolean |
equals(Margins obj1,
Margins obj2) |
boolean |
equals(Object obj)
Tests whether two
T:Margins structures are equal. |
float |
getBottom()
Gets or sets the bottom margin width.
|
float |
getLeft()
Gets or sets the left margin width.
|
float |
getRight()
Gets or sets the right margin width.
|
float |
getTop()
Gets or sets the top margin width.
|
static boolean |
op_Equality(Margins lhs,
Margins rhs)
Tests whether two
T:Margins structures are equal. |
static boolean |
op_Inequality(Margins lhs,
Margins rhs)
Tests whether two
T:Margins structures are not equal. |
void |
setBottom(float value)
Gets or sets the bottom margin width.
|
void |
setLeft(float value)
Gets or sets the left margin width.
|
void |
setRight(float value)
Gets or sets the right margin width.
|
void |
setTop(float value)
Gets or sets the top margin width.
|
public static final Margins Empty
The empty margins.
public Margins()
public Margins(float left, float right, float top, float bottom)
Initializes a new instance of the Margins
struct
with the specified left, right, top, and bottom margins.
left
- The left margin width.right
- The right margin width.top
- The top margin width.bottom
- The bottom margin width.public static boolean op_Equality(Margins lhs, Margins rhs)
Tests whether two T:Margins
structures are equal.
lhs
- The T:Margins
structure.rhs
- The T:Margins
structure to be compared with.bool
.public static boolean op_Inequality(Margins lhs, Margins rhs)
Tests whether two T:Margins
structures are not equal.
lhs
- The T:Margins
structure.rhs
- The T:Margins
structure to be compared with.bool
.public boolean equals(Margins other)
public boolean equals(Object obj)
Tests whether two T:Margins
structures are equal.
public float getLeft()
Gets or sets the left margin width.
public void setLeft(float value)
Gets or sets the left margin width.
public float getRight()
Gets or sets the right margin width.
public void setRight(float value)
Gets or sets the right margin width.
public float getTop()
Gets or sets the top margin width.
public void setTop(float value)
Gets or sets the top margin width.
public float getBottom()
Gets or sets the bottom margin width.
public void setBottom(float value)
Gets or sets the bottom margin width.
public void CloneTo(Margins that)
CloneTo
in class com.aspose.ms.System.ValueType<Margins>