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

适用于