TreeList.PreviewLineCount Property

Gets or sets the number of text lines in preview sections.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v21.1.dll


public int PreviewLineCount { get; set; }

Property Value

Type Default Description


An integer value specifying the number of text lines within preview sections.


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.

See Also