TreeRowclass
One visible row of a `Sandbox.UI.BaseTreeView`. Rows are pooled and rebound as the tree scrolls, so anything you add to one must be created once and updated on every bind.
Constructors1
Showing 1 constructors
public TreeRow()
No results match this filter.
Methods11
Showing 11 methods
public void BeginRename()
Swap the label for a text entry until enter, escape, or focus loss.
void—protected virtual void OnClick(Sandbox.UI.MousePanelEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MousePanelEvent | — |
void—protected virtual void OnDoubleClick(Sandbox.UI.MousePanelEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MousePanelEvent | — |
void—protected virtual void OnDrag(Sandbox.UI.DragEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | DragEvent | — |
void—protected virtual void OnDragEnd(Sandbox.UI.DragEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | DragEvent | — |
void—protected virtual void OnDragEnter(Sandbox.UI.PanelEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | PanelEvent | — |
void—protected virtual void OnDragLeave(Sandbox.UI.PanelEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | PanelEvent | — |
void—protected virtual void OnDragStart(Sandbox.UI.DragEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | DragEvent | — |
void—protected virtual void OnDrop(Sandbox.UI.PanelEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | PanelEvent | — |
void—protected virtual void OnMouseDown(Sandbox.UI.MousePanelEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MousePanelEvent | — |
void—protected virtual void OnRightClick(Sandbox.UI.MousePanelEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MousePanelEvent | — |
void—No results match this filter.
Properties10
Showing 10 properties
public Sandbox.UI.Panel Sandbox.UI.TreeRow.Content { get; set; }
Where a row's own controls go - toggles, buttons, badges - added once and updated on every bind. Clicks on them belong to them: they don't select or activate the row.
public Sandbox.UI.IconPanel Sandbox.UI.TreeRow.Expander { get; set; }
The expand/collapse arrow. Hidden on rows without children.
public string Sandbox.UI.TreeRow.IconName { get; set; }
Material icon name. Null or empty hides the icon.
string—public bool Sandbox.UI.TreeRow.IsRenaming { get; set; }
True while the label is swapped for a text entry.
bool—public int Sandbox.UI.TreeRow.RowIndex { get; set; }
Index into the tree's flat row list, or -1 while pooled.
int—public string Sandbox.UI.TreeRow.Text { get; set; }
The row's label text. Only touches the label when it changes.
string—public Sandbox.UI.BaseTreeView Sandbox.UI.TreeRow.Tree { get; set; }
The tree this row belongs to.
No results match this filter.