Skip to main content

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.1.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