Padding class

Padding class

Represents padding or margin information associated with element.

The Padding type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of Padding class using zero values.
init Initializes a new instance of the Padding class using the supplied padding size for all edges.
init Initializes a new instance of the Padding class using the supplied padding sizes.

Properties

Property Description
all Gets or sets the padding value for all the edges.
Changing of any partial edge like left or top makes this property equal 0;
left Gets or sets the padding value for the left edge.
right Gets or sets the padding value for the right edge.
top Gets or sets the padding value for the top edge.
bottom Gets or sets the padding value for the bottom edge.
horizontal Gets the combined padding for the right and left edges.
vertical Gets the combined padding for the top and bottom edges.
EMPTY Provides a Padding object with no padding.

Methods

Method Description
clone Gets a copy of this object.

See Also