Back to Devexpress

TreeList.CaptionHeight Property

windowsforms-devexpress-dot-xtratreelist-dot-treelist-a5db36f9.md

latest2.2 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(-1)]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleYNoDefault)]
public int CaptionHeight { get; set; }
vb
<DefaultValue(-1)>
<XtraSerializableProperty(XtraSerializationFlags.AutoScaleYNoDefault)>
Public Property CaptionHeight As Integer

Property Value

TypeDefaultDescription
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

Caption

Caption Panel

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace