Control.Margin Control.Margin Control.Margin Control.Margin Property

定义

获取或设置控件之间的空间。Gets or sets the space between controls.

public:
 property System::Windows::Forms::Padding Margin { System::Windows::Forms::Padding get(); void set(System::Windows::Forms::Padding value); };
public System.Windows.Forms.Padding Margin { get; set; }
member this.Margin : System.Windows.Forms.Padding with get, set
Public Property Margin As Padding

属性值

表示控件之间的间距的 PaddingA Padding representing the space between controls.

注解

控件接收Margin的默认值相当接近 Windows 用户界面准则。Controls receive default values for Margin that are reasonably close to Windows user interface guidelines. 有些调整对于特定的应用程序可能仍然是必需的。Some adjustments might still be necessary for particular applications.

备注

设置停靠Margin控件上的属性对控件距其容器边缘的距离不起作用。Setting the Margin property on a docked control has no effect on the distance of the control from the edges of its container.

适用于