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

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.

適用於