Skip to main content
A newer version of this page is available. .
Tab

Paddings Members

Contains padding settings.

Constructors

Name Description
Paddings() Initializes a new instance of the Paddings class.
Paddings(Unit, Unit, Unit, Unit, Unit) Initializes a new instance of the Paddings class with the specified padding values for all the edges.
Paddings(Unit, Unit, Unit, Unit) Initializes a new instance of the Paddings class with the specified padding values for the left, right, top and bottom edges.
Paddings(Unit) Initializes a new instance of the Paddings class with the specified padding value for all the edges.

Fields

Name Description
NullPaddings static Defines null padding settings.

Properties

Name Description
IsEmpty Gets a value that indicates whether this Paddings object is initialized with the default values.
Padding Gets or sets the common padding value for all the four edges.
PaddingBottom Gets or sets the padding value for the bottom edge.
PaddingLeft Gets or sets the padding value for the left edge.
PaddingRight Gets or sets the padding value for the right edge.
PaddingTop Gets or sets the padding value for the top edge.

Methods

Name Description
Assign(Paddings) Copies the settings from the specified Paddings object to the current object.
AssignToControl(WebControl) Copies the settings from the current Paddings object to the specified object.
CopyFrom(Paddings) Duplicates the properties of the specified object into the current instance of the Paddings class.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
FillStyleAttributes(CssStyleCollection, IUrlResolutionService) For internal use only.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetPaddingBottom() Returns the padding value for the bottom edge.
GetPaddingLeft() Returns the padding value for the left edge.
GetPaddingRight() Returns the padding value for the right edge.
GetPaddingTop() Returns the padding value for the top edge.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MergeWith(Paddings) Combines the properties of the specified Paddings with the current instance of the Paddings class.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Reset() Returns the Paddings object to its original state.
ToString() Returns a string that represents the current object.
See Also