ListViewGroup.HeaderAlignment Property


获取或设置组标题文本的对齐方式。Gets or sets the alignment of the group header text.

 property System::Windows::Forms::HorizontalAlignment HeaderAlignment { System::Windows::Forms::HorizontalAlignment get(); void set(System::Windows::Forms::HorizontalAlignment value); };
public System.Windows.Forms.HorizontalAlignment HeaderAlignment { get; set; }
member this.HeaderAlignment : System.Windows.Forms.HorizontalAlignment with get, set
Public Property HeaderAlignment As HorizontalAlignment

Property Value


HorizontalAlignment 值之一,它指定标题文本的对齐方式。One of the HorizontalAlignment values that specifies the alignment of the header text. 默认为 LeftThe default is Left.


当设置此属性时,指定的值不是有效的 HorizontalAlignment 值。The specified value when setting this property is not a valid HorizontalAlignment value.


使用此属性可以检索标题对齐方式,或在运行时更改对齐方式。Use this property to retrieve the header alignment or to change the alignment at run time. 您还可以在 ListViewGroup 构造函数中设置标题的对齐方式。You can also set the header alignment in the ListViewGroup constructor.

Applies to