共用方式為


Title.Alignment 屬性

定義

取得或設定標題的對齊方式。

public:
 property System::Drawing::ContentAlignment Alignment { System::Drawing::ContentAlignment get(); void set(System::Drawing::ContentAlignment value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public System.Drawing.ContentAlignment Alignment { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.Alignment : System.Drawing.ContentAlignment with get, set
Public Property Alignment As ContentAlignment

屬性值

ContentAlignment

ContentAlignment 列舉值,表示文字繪製區內的標題對齊方式。 預設值是 MiddleCenter

屬性

備註

Alignment如果屬性未設定為,則屬性不 Position 會影響對齊 Auto

適用於