Skip to main content
A newer version of this page is available. .

TreeList.Caption Property

Gets or sets the caption displayed at the top of the TreeList control.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v18.2.dll

Declaration

[DefaultValue("")]
[XtraSerializableProperty]
public string Caption { get; set; }

Property Value

Type Default Description
String String.Empty

A String value that specifies the caption that is displayed at the top of the TreeList control.

Remarks

The Caption property allows you to specify a string caption to be displayed at the top of the TreeList control. See the figure below.

TreeList_Caption

The caption is displayed in the panel whose visibility is specified by the TreeListOptionsView.ShowCaption property (accessible through the TreeList.OptionsView property). By default, the caption panel is hidden. Set this property to true to display the caption panel.

By default, the caption panel height is calculated automatically based on the appearance settings (see TreeListAppearanceCollection.Caption property). You can also specify a custom caption panel height using the TreeList.CaptionHeight property. However, if this property specifies a height insufficient to display the caption in its entirety, the minimum required value is used.

See Also