Padding Constructor (Int32, Int32, Int32, Int32)

 

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
Padding(
	int left,
	int top,
	int right,
	int bottom
)

Parameters

left
Type: System::Int32

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

top
Type: System::Int32

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

right
Type: System::Int32

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

bottom
Type: System::Int32

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

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

.NET Framework
Available since 2.0
Return to top
Show: