Padding

Padding class

Represents padding or margin information associated with element.

public class Padding : ICloneable

Constructors

Name Description
Padding() Initializes a new instance of Padding class using zero values.
Padding(int) Initializes a new instance of the Padding class using the supplied padding size for all edges.
Padding(int, int, int, int) Initializes a new instance of the Padding class using the supplied padding sizes.

Properties

Name Description
All { get; set; } Gets or sets the padding value for all the edges. Changing of any partial edge like left or top makes this property equal 0;
Bottom { get; set; } Gets or sets the padding value for the bottom edge.
Horizontal { get; } Gets the combined padding for the right and left edges.
Left { get; set; } Gets or sets the padding value for the left edge.
Right { get; set; } Gets or sets the padding value for the right edge.
Top { get; set; } Gets or sets the padding value for the top edge.
Vertical { get; } Gets the combined padding for the top and bottom edges.

Methods

Name Description
Clone() Gets a copy of this object.

Fields

Name Description
static readonly Empty Provides a Padding object with no padding.

See Also