1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- namespace Terminal.Gui.Trees {
- /// <summary>
- /// Defines rendering options that affect how the tree is displayed
- /// </summary>
- public class TreeStyle {
- /// <summary>
- /// True to render vertical lines under expanded nodes to show which node belongs to which
- /// parent. False to use only whitespace
- /// </summary>
- /// <value></value>
- public bool ShowBranchLines { get; set; } = true;
- /// <summary>
- /// Symbol to use for branch nodes that can be expanded to indicate this to the user.
- /// Defaults to '+'. Set to null to hide
- /// </summary>
- public Rune? ExpandableSymbol { get; set; } = '+';
- /// <summary>
- /// Symbol to use for branch nodes that can be collapsed (are currently expanded).
- /// Defaults to '-'. Set to null to hide
- /// </summary>
- public Rune? CollapseableSymbol { get; set; } = '-';
- /// <summary>
- /// Set to true to highlight expand/collapse symbols in hot key color
- /// </summary>
- public bool ColorExpandSymbol { get; set; }
- /// <summary>
- /// Invert console colours used to render the expand symbol
- /// </summary>
- public bool InvertExpandSymbolColors { get; set; }
- /// <summary>
- /// 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.
- /// </summary>
- /// <value></value>
- public bool LeaveLastRow { get; set; }
- }
- }
|