This documentation is archived and is not being maintained.

Padding Members

Represents padding or margin information associated with a user interface (UI) element.

The following tables list the members exposed by the Padding type.

  Name Description
Public method Padding Overloaded. Initializes a new instance of the Padding class.
Top

  Name Description
Public field Static Empty Provides a Padding object with no padding.
Top

  Name Description
Public property All Gets or sets the padding value for all the edges.
Public property Bottom Gets or sets the padding value for the bottom edge.
Public property Horizontal Gets the combined padding for the right and left edges.
Public property Left Gets or sets the padding value for the left edge.
Public property Right Gets or sets the padding value for the right edge.
Public property Size Gets the padding information in the form of a System.Drawing.Size.
Public property Top Gets or sets the padding value for the top edge.
Public property Vertical Gets the combined padding for the top and bottom edges.
Top

(see also Protected Methods )
  Name Description
Public method Static Add Computes the sum of the two specified Padding values.
Public method Equals Overloaded. Overridden. Determines whether the value of the specified object is equivalent to the current Padding.
Public method GetHashCode Overridden. Generates a hash code for the current Padding.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static op_Addition Performs vector addition on the two specified Padding objects, resulting in a new Padding.
Public method Static op_Equality Tests whether two specified Padding objects are equivalent.
Public method Static op_Inequality Tests whether two specified Padding objects are not equivalent.
Public method Static op_Subtraction Performs vector subtraction on the two specified Padding objects, resulting in a new Padding.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Static Subtract Subtracts one specified Padding value from another.
Public method ToString Overridden. Returns a string that represents the current Padding.
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top
Show: