Control.Margin Property

Definition

获取或设置控件之间的空间。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

Property Value

Padding

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

Remarks

控件将接收相当接近 Windows 用户界面准则的 Margin 的默认值。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

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

Applies to