Class TreeStyle
Defines rendering options that affect how the tree is displayed.
Inherited Members
Namespace: Terminal.Gui.Trees
Assembly: Terminal.Gui.dll
Syntax
public class TreeStyle
Properties
| Edit this page View SourceCollapseableSymbol
Symbol to use for branch nodes that can be collapsed (are currently expanded).
Defaults to '-'. Set to null to hide.
Declaration
public Rune? CollapseableSymbol { get; set; }
Property Value
| Type | Description |
|---|---|
| Rune? |
ColorExpandSymbol
Set to true to highlight expand/collapse symbols in hot key color.
Declaration
public bool ColorExpandSymbol { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ExpandableSymbol
Symbol to use for branch nodes that can be expanded to indicate this to the user.
Defaults to '+'. Set to null to hide.
Declaration
public Rune? ExpandableSymbol { get; set; }
Property Value
| Type | Description |
|---|---|
| Rune? |
HighlightModelTextOnly
Set to true to cause the selected item to be rendered with only the Model text
to be highlighted. If false (the default), the entire row will be highlighted.
Declaration
public bool HighlightModelTextOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
InvertExpandSymbolColors
Invert console colours used to render the expand symbol.
Declaration
public bool InvertExpandSymbolColors { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LeaveLastRow
true to leave the last row of the control free for overwritting (e.g. by a scrollbar)
When true scrolling will be triggered on the second last row of the control rather than.
the last.
Declaration
public bool LeaveLastRow { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowBranchLines
true to render vertical lines under expanded nodes to show which node belongs to which
parent. false to use only whitespace.
Declaration
public bool ShowBranchLines { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |