Gets or sets the space between controls.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Syntax . . :: . Padding
A Padding representing the space between controls.
Public Property Margin As Paddingpublic Padding Margin { get; set; }public:
property Padding Margin {
Padding get ();
void set (Padding value);
}member Margin : Padding with get, set
Property Value
Type: System.Windows.FormsA Padding representing the space between controls.
Remarks
Controls receive default values for Margin that are reasonably close to Windows user interface guidelines. Some adjustments might still be necessary for particular applications.
Note |
|---|
Setting the Margin property on a docked control has no effect on the distance of the control from the the edges of its container. |
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.
Note