Modifier and Type | Field and Description |
---|---|
static Padding |
Empty
Provides a Padding object with no padding.
|
Constructor and Description |
---|
Padding()
Initializes a new instance of Padding class using zero values.
|
Padding(int all)
Initializes a new instance of the Padding class using the supplied padding size for all edges.
|
Padding(int left,
int right,
int top,
int bottom)
Initializes a new instance of the Padding class using the supplied padding sizes.
|
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Gets a copy of this object.
|
int |
getAll()
Gets or sets the padding value for all the edges.
|
int |
getBottom()
Gets or sets the padding value for the bottom edge.
|
int |
getHorizontal()
Gets the combined padding for the right and left edges.
|
int |
getLeft()
Gets or sets the padding value for the left edge.
|
int |
getRight()
Gets or sets the padding value for the right edge.
|
int |
getTop()
Gets or sets the padding value for the top edge.
|
int |
getVertical()
Gets the combined padding for the top and bottom edges.
|
void |
setAll(int value)
Gets or sets the padding value for all the edges.
|
void |
setBottom(int value)
Gets or sets the padding value for the bottom edge.
|
void |
setLeft(int value)
Gets or sets the padding value for the left edge.
|
void |
setRight(int value)
Gets or sets the padding value for the right edge.
|
void |
setTop(int value)
Gets or sets the padding value for the top edge.
|
String |
toString()
Overrides conversion to string
|
public static final Padding Empty
Provides a Padding object with no padding.
public Padding()
Initializes a new instance of Padding class using zero values.
public Padding(int all)
Initializes a new instance of the Padding class using the supplied padding size for all edges.
all
- The number of measure units to be used for padding for all edges.public Padding(int left, int right, int top, int bottom)
Initializes a new instance of the Padding class using the supplied padding sizes.
left
- The left padding size.right
- The right padding size.top
- The top padding size.bottom
- The bottom padding size.public final Object deepClone()
Gets a copy of this object.
public final int getAll()
Gets or sets the padding value for all the edges. Changing of any partial edge like left or top makes this property equal 0;
public final int getBottom()
Gets or sets the padding value for the bottom edge.
public final int getHorizontal()
Gets the combined padding for the right and left edges.
public final int getLeft()
Gets or sets the padding value for the left edge.
public final int getRight()
Gets or sets the padding value for the right edge.
public final int getTop()
Gets or sets the padding value for the top edge.
public final int getVertical()
Gets the combined padding for the top and bottom edges.
public final void setAll(int value)
Gets or sets the padding value for all the edges. Changing of any partial edge like left or top makes this property equal 0;
public final void setBottom(int value)
Gets or sets the padding value for the bottom edge.
public final void setLeft(int value)
Gets or sets the padding value for the left edge.
public final void setRight(int value)
Gets or sets the padding value for the right edge.
public final void setTop(int value)
Gets or sets the padding value for the top edge.