Class Node
Inheritance
System.Object
Node
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Syntax
Constructors
Node(Object, Single, Boolean)
Declaration
public Node(object content, float weight = 1F, bool active = false)
Parameters
| Type |
Name |
Description |
| System.Object |
content |
|
| System.Single |
weight |
|
| System.Boolean |
active |
|
Properties
active
Declaration
public bool active { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
children
Declaration
public IList<Node> children { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IList<Node> |
|
content
Declaration
public object content { get; }
Property Value
| Type |
Description |
| System.Object |
|
depth
Declaration
public int depth { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
parent
Declaration
public Node parent { get; }
Property Value
weight
Declaration
public float weight { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
AddChild(Node)
Declaration
public void AddChild(Node child)
Parameters
| Type |
Name |
Description |
| Node |
child |
|
GetColor()
Declaration
public virtual Color GetColor()
Returns
GetContentType()
Declaration
public virtual Type GetContentType()
Returns
GetContentTypeName()
Declaration
public virtual string GetContentTypeName()
Returns
| Type |
Description |
| System.String |
|
GetContentTypeShortName()
Declaration
public virtual string GetContentTypeShortName()
Returns
| Type |
Description |
| System.String |
|
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()