Padding Padding Padding Padding Constructors

Definition

Overloads

Padding(Int32) Padding(Int32) Padding(Int32) Padding(Int32)

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

Padding(Int32, Int32, Int32, Int32) Padding(Int32, Int32, Int32, Int32) Padding(Int32, Int32, Int32, Int32) Padding(Int32, Int32, Int32, Int32)

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

Padding(Int32) Padding(Int32) Padding(Int32) Padding(Int32)

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

public:
 Padding(int all);
public Padding (int all);
new System.Windows.Forms.Padding : int -> System.Windows.Forms.Padding
Public Sub New (all As Integer)

Parameters

all
Int32 Int32 Int32 Int32

The number of pixels to be used for padding for all edges.

Remarks

This constructor sets the Right, Left, Bottom, Top and All properties to the value of the all parameter.

See also

Padding(Int32, Int32, Int32, Int32) Padding(Int32, Int32, Int32, Int32) Padding(Int32, Int32, Int32, Int32) Padding(Int32, Int32, Int32, Int32)

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

public:
 Padding(int left, int top, int right, int bottom);
public Padding (int left, int top, int right, int bottom);
new System.Windows.Forms.Padding : int * int * int * int -> System.Windows.Forms.Padding
Public Sub New (left As Integer, top As Integer, right As Integer, bottom As Integer)

Parameters

left
Int32 Int32 Int32 Int32

The padding size, in pixels, for the left edge.

top
Int32 Int32 Int32 Int32

The padding size, in pixels, for the top edge.

right
Int32 Int32 Int32 Int32

The padding size, in pixels, for the right edge.

bottom
Int32 Int32 Int32 Int32

The padding size, in pixels, for the bottom edge.

Remarks

If all of the parameter values are equal, then the All property will reflect this common value.

See also

Applies to