Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.CaptionHeight Property

Gets or sets the height, in pixels, of the panel at the top of the TreeList control in which the caption is displayed.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

[DefaultValue(-1)]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleYNoDefault)]
public int CaptionHeight { get; set; }

#Property Value

Type Default Description
Int32 -1

An integer value that specifies the height, in pixels, of the panel at the top of the TreeList control in which the caption is displayed.

#Remarks

When the CaptionHeight property is set to -1, the Caption Panel height is calculated automatically, based on the appearance settings (see TreeListAppearanceCollection.Caption). You can use the CaptionHeight property to specify a custom caption panel height. However, if this property specifies a height insufficient to display the caption in its entirety, the automatically calculated value is used.

See Also