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.

适用于