Padding Constructor (Int32, Int32, Int32, Int32) (System.Windows.Forms)

Switch View :
ScriptFree
.NET Framework Class Library
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)
Syntax

Visual Basic
Public Sub New ( _
	left As Integer, _
	top As Integer, _
	right As Integer, _
	bottom As Integer _
)
C#
public Padding(
	int left,
	int top,
	int right,
	int bottom
)
Visual C++
public:
Padding(
	int left, 
	int top, 
	int right, 
	int bottom
)
F#
new : 
        left:int * 
        top:int * 
        right:int * 
        bottom:int -> Padding

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.
Remarks

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

Version Information

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also

Reference

Top

Other Resources