TreeList.RowHeight Property
Gets or sets the height of a node in pixels.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v18.2.dll
Declaration
[DefaultValue(-1)]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleY)]
public int RowHeight { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Int32 | -1 | An integer value specifying the height of a node in pixels. |
Remarks
Use the RowHeight property to assign the same custom height to all nodes. If this property value is -1, the height of nodes is calculated in accordance to the current appearance settings. By default, the height is calculated to accommodate a single text line within a cell. If you want the node height to be calculated according to the editor’s contents, enable the TreeListOptionsBehavior.AutoNodeHeight option.
If you want different custom heights to be assigned to various nodes, handle the TreeList.CalcNodeHeight event.
End-users can reset a node’s height to a default value by double-clicking an indicator cell’s horizontal edge.