Class TreeListRow
One row a TreeListVirtual draws: an item of a flattened tree, with its depth, parent and position among its siblings, or a placeholder standing in for rows that cannot be shown yet.
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class TreeListRow
Remarks
Mirrors the web registry's TreeListRow. Build a list of these with
Flatten<T>(TreeListFlattenOptions<T>).
Properties
expandable
Whether the row has children to disclose, loaded or not.
Declaration
public bool expandable { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
expanded
Whether the row is open.
Declaration
public bool expanded { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
id
The row's id. Unique among item rows; a placeholder is keyed by its parent.
Declaration
public string id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
level
The row's depth, 0 at the top level.
Declaration
public int level { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
parentId
The id of the row's parent, or null at the top level.
Declaration
public string parentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
pendingIndex
On a placeholder for one child of a partly loaded level, its position among the children still to load; -1 otherwise.
Declaration
public int pendingIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
placeholder
Whether the row is a placeholder rather than an item.
Declaration
public bool placeholder { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
placeholderCount
On a placeholder, how many rows it stands in for, at least 1.
Declaration
public int placeholderCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
posInSet
The row's 1-based position among its siblings. 0 on a placeholder for a whole level.
Declaration
public int posInSet { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
setSize
How many siblings the row has, itself included. 0 on a placeholder for a whole level.
Declaration
public int setSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |