Padding Class
Represents padding or margin information associated with a user interface (UI) element. This class cannot be inherited.
Definition
| public sealed class Padding: Object |
Members Table
The following table lists the members exposed by the Padding object. Click a tab on the left to choose the type of member you want to view.
Methods
| Method | Description |
|---|
| Add | Adds a specified Padding object to another specified Padding object. |
| Equals | Overloaded. Compares two objects to determine if they are equal. |
| GetHashCode | Overriden. Returns the hash code for this Padding object. |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| Padding | Overloaded. Initializes a new instance of Padding. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object) |
| Substract | Substracts a specified Padding object from another specified Padding object. |
| ToString | Overriden. Returns a string representation of the current Padding. |
Properties
| Property | Description |
|---|
| All | Gets or sets the padding value for all the edges. |
| Bottom | Gets or sets the padding value for the bottom edge. |
| Horizontal | Gets the combined padding for the right and left edges. |
| Left | Gets or sets the padding value for the left edge. |
| Right | Gets or sets the padding value for the right edge. |
| Size | Gets the padding information in the form of a Size. |
| Top | Gets or sets the padding value for the top edge. |
| Vertical | Gets the combined padding for the top and bottom edges. |
Operators
| Operator | Description |
|---|
| operator != | Compares two Padding objects. The result specifies whether the different padding values of the different edges are unequal. |
| operator + | Adds the values of the different edges of one Padding object to those of another Padding object. |
| operator - | Subtracts the values of the different edges of one Padding object from those of another Padding object. |
| operator == | Compares two Padding objects. The result specifies whether the different padding values of the different edges are equal. |
Fields
| Field | Description |
|---|
| Empty | Represents a Padding object with no padding. |
Inheritance Hierarchy
ObjectPadding
Class Information
| Namespace | System.Windows.Forms |
|---|
| Flash Library | System.Windows.Forms.scl |
|---|
| Flash Library Version | 2.0.0.2118 |
|---|
| Silverlight Library | System.Windows.Forms.dll |
|---|