System.Windows.Forms.Padding Members

The members of System.Windows.Forms.Padding are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Initializes a new instance of the System.Windows.Forms.Padding class using the supplied padding size for all edges.

Initializes a new instance of the System.Windows.Forms.Padding class using a separate padding size for each edge.

Public Fields

static readonly
EmptyPadding.

Provides a System.Windows.Forms.Padding object with no padding.

Public Properties

Allint.

Gets or sets the padding value for all the edges.

Bottomint.

Gets or sets the padding value for the bottom edge.

[read-only]
Horizontalint.

Gets the combined padding for the right and left edges.

Leftint.

Gets or sets the padding value for the left edge.

Rightint.

Gets or sets the padding value for the right edge.

[read-only]
SizeSystem.Drawing.Size.

Gets the padding information in the form of a System.Drawing.Size.

Topint.

Gets or sets the padding value for the top edge.

[read-only]
Verticalint.

Gets the combined padding for the top and bottom edges.

Public Methods

static
Add(Padding, Padding) : Padding

Computes the sum of the two specified System.Windows.Forms.Padding values.

override
Equals(object) : bool

Determines whether the value of the specified object is equivalent to the current System.Windows.Forms.Padding.

override
GetHashCode() : int

Generates a hash code for the current System.Windows.Forms.Padding.

static
Subtract(Padding, Padding) : Padding

Subtracts one specified System.Windows.Forms.Padding value from another.

override
ToString() : string

Returns a string that represents the current System.Windows.Forms.Padding.

Public Operators

static
Addition(Padding, Padding)

Performs vector addition on the two specified System.Windows.Forms.Padding objects, resulting in a new System.Windows.Forms.Padding.

static
Equality(Padding, Padding)

Tests whether two specified System.Windows.Forms.Padding objects are equivalent.

static
Inequality(Padding, Padding)

Tests whether two specified System.Windows.Forms.Padding objects are not equivalent.

static
Subtraction(Padding, Padding)

Performs vector subtraction on the two specified System.Windows.Forms.Padding objects, resulting in a new System.Windows.Forms.Padding.