System.Windows.Forms.ColumnHeader.TextAlign Property

Gets or sets the horizontal alignment of the text displayed in the System.Windows.Forms.ColumnHeader.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue(System.Windows.Forms.HorizontalAlignment.Left)]
public HorizontalAlignment TextAlign { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can use this property to provide different text alignment settings for the text displayed in each System.Windows.Forms.ColumnHeader.

Note:

Due to a limitation in the underlying control, this property has no effect on the first column in the System.Windows.Forms.ListView control, which is always aligned to the left. To work around this limitation in dnprdnext, you can handle the ListView.DrawColumnHeader event and paint the column header yourself.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0