public class Margin
extends java.lang.Object
implements java.lang.Cloneable
Represents page margin.
Constructor and Description |
---|
Margin()
Initializes a new instance of the
Margin class. |
Margin(int anyMargin)
Initializes a new instance of the
Margin class. |
Margin(int left,
int top,
int right,
int bottom)
Initializes a new instance of the
Margin class. |
Margin(Length anyMargin)
Initializes a new instance of the
Margin class. |
Margin(Length left,
Length top,
Length right,
Length bottom)
Initializes a new instance of the
Margin class. |
Modifier and Type | Method and Description |
---|---|
Margin |
deepClone() |
LengthOrAuto |
getBottom()
Gets or sets the bottom.
|
LengthOrAuto |
getLeft()
Gets or sets the left.
|
LengthOrAuto |
getRight()
Gets or sets the right.
|
LengthOrAuto |
getTop()
Gets or sets the top.
|
protected java.lang.Object |
memberwiseClone() |
void |
setBottom(LengthOrAuto value)
Gets or sets the bottom.
|
void |
setLeft(LengthOrAuto value)
Gets or sets the left.
|
void |
setRight(LengthOrAuto value)
Gets or sets the right.
|
void |
setTop(LengthOrAuto value)
Gets or sets the top.
|
public Margin()
Initializes a new instance of the Margin
class.
public Margin(int anyMargin)
Initializes a new instance of the Margin
class.
anyMargin
- Any margin size.public Margin(Length anyMargin)
Initializes a new instance of the Margin
class.
anyMargin
- Any margin size.public Margin(int left, int top, int right, int bottom)
Initializes a new instance of the Margin
class.
left
- The left size.top
- The top size.right
- The right size.bottom
- The bottom size.public LengthOrAuto getTop()
Gets or sets the top.
Value: The top.public void setTop(LengthOrAuto value)
Gets or sets the top.
Value: The top.public LengthOrAuto getRight()
Gets or sets the right.
Value: The right.public void setRight(LengthOrAuto value)
Gets or sets the right.
Value: The right.public LengthOrAuto getBottom()
Gets or sets the bottom.
Value: The bottom.public void setBottom(LengthOrAuto value)
Gets or sets the bottom.
Value: The bottom.public LengthOrAuto getLeft()
Gets or sets the left.
Value: The left.public void setLeft(LengthOrAuto value)
Gets or sets the left.
Value: The left.public Margin deepClone()
protected java.lang.Object memberwiseClone()