Control.Margin 屬性

定義

取得或設定控制項之間的空格。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

屬性值

Padding,表示控制項之間的間距。A Padding representing the space between controls.

備註

控制項會接收相當接近 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.

注意

在停駐的控制項上設定 Margin 屬性,並不會影響控制項與其容器邊緣之間的距離。Setting the Margin property on a docked control has no effect on the distance of the control from the edges of its container.

適用於