Control.Margin 屬性

定義

取得或設定控制項之間的空格。

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

Padding,表示控制項之間的間距。

備註

控制項會接收與 Windows 使用者介面指導方針相當接近的預設值 Margin 。 某些調整可能仍然需要特定應用程式。

注意

Margin在停駐控制項上設定 屬性不會影響控制項與其容器邊緣的距離。

適用於