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

屬性值

Padding,表示控制項之間的間距。A 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.

適用於