windowsforms-devexpress-dot-xtratreelist-dot-treelist-a5db36f9.md
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.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
[DefaultValue(-1)]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleYNoDefault)]
public int CaptionHeight { get; set; }
<DefaultValue(-1)>
<XtraSerializableProperty(XtraSerializationFlags.AutoScaleYNoDefault)>
Public Property CaptionHeight As Integer
| 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.
|
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