TreeList.PreviewLineCount Property
Gets or sets the number of text lines in preview sections.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Int32 | 1 | An integer value specifying the number of text lines within preview sections. |
Remarks
To set the same height for all preview sections, use the PreviewLineCount property. This property cannot be set to a value less than 1 or greater than 10.
In the following image, the PreviewLineCount property’s value is 2.
To automatically calculate the preview section height, enable the TreeListOptionsView.AutoCalcPreviewLineCount option. In this case, preview sections in different nodes might be different heights. The Tree List ignores the PreviewLineCount setting if the AutoCalcPreviewLineCount option is enabled.
The TreeList.MeasurePreviewHeight event allows you to dynamically specify heights for individual nodes.