Search Results for

    Show / Hide Table of Contents

    Class TreeNode

    Simple class for representing nodes, use with regular (non generic) TreeView.
    Inheritance
    object
    TreeNode
    Implements
    ITreeNode
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Terminal.Gui.Trees
    Assembly: Terminal.Gui.dll
    Syntax
    public class TreeNode : ITreeNode

    Constructors

    | Edit this page View Source

    TreeNode()

    Initialises a new instance with no Text
    Declaration
    public TreeNode()
    | Edit this page View Source

    TreeNode(string)

    Initialises a new instance and sets starting Text
    Declaration
    public TreeNode(string text)
    Parameters
    Type Name Description
    string text

    Properties

    | Edit this page View Source

    Children

    Children of the current node
    Declaration
    public virtual IList<ITreeNode> Children { get; set; }
    Property Value
    Type Description
    IList<ITreeNode>
    | Edit this page View Source

    Tag

    Optionally allows you to store some custom data/class here.
    Declaration
    public object Tag { get; set; }
    Property Value
    Type Description
    object
    | Edit this page View Source

    Text

    Text to display in tree node for current entry
    Declaration
    public virtual string Text { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    ToString()

    returns Text
    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    ITreeNode
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX