ToolStripControlHost.ControlAlign 屬性

定義

取得或設定表單上控制項的對齊方式。

public:
 property System::Drawing::ContentAlignment ControlAlign { System::Drawing::ContentAlignment get(); void set(System::Drawing::ContentAlignment value); };
[System.ComponentModel.Browsable(false)]
public System.Drawing.ContentAlignment ControlAlign { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.ControlAlign : System.Drawing.ContentAlignment with get, set
Public Property ControlAlign As ContentAlignment

屬性值

ContentAlignment

其中一個 ContentAlignment 值。 預設為 MiddleCenter

屬性

例外狀況

ControlAlign 屬性沒有設定成其中一個 ContentAlignment 值。

備註

ControlAlign使用 屬性來決定或定義如何在表單上配置裝載的控制項。

適用於