共用方式為


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

屬性值

A Padding 代表控制點之間的空間。

備註

控制項預設值 Margin 與 Windows 使用者介面指引相當接近。 某些應用仍可能需要做一些調整。

備註

將屬性設 Margin 在停靠控制節點上,不會影響控制點與容器邊緣的距離。

適用於