windowsforms-devexpress-dot-xtratreelist-dot-customdrawcolumnheadereventargs-a3399ee4.md
Gets or sets the text displayed within the painted column header.
Namespace : DevExpress.XtraTreeList
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
public string Caption { get; set; }
Public Property Caption As String
| Type | Description |
|---|---|
| String |
A string value representing the painted column header’s text. An empty string if the column button or the space not occupied by column headers is painted.
|
The Caption property can be used for the following two purposes:
Use the CustomDrawColumnHeaderEventArgs.CaptionRect property to determine the boundaries in which the caption text is intended to be drawn. Note, that column headers can also contain images specifying the order of sorting performed by column values. The bounding rectangle of this image can be obtained via the CustomDrawColumnHeaderEventArgs.SortShapeRect property.
See Also
CustomDrawColumnHeaderEventArgs Class