HtmlForgeX

API Reference

Class

FancyTreeNode

Namespace HtmlForgeX
Assembly HtmlForgeX

Represents a single node within a FancyTree control.

Inheritance

  • Object
  • FancyTreeNode

Constructors

FancyTreeNode 2 overloads
public FancyTreeNode() #

Initializes a new instance of the FancyTreeNode class.

public FancyTreeNode(String title, String icon = "", Boolean folder = false) #

Initializes a new instance of the FancyTreeNode class with values.

Parameters

title System.String requiredposition: 0
Node title.
icon System.String = "" optionalposition: 1
Node icon.
folder System.Boolean = false optionalposition: 2
Indicates if the node is a folder.

Methods

AddNode 3 overloads
public FancyTreeNode AddNode(Action<FancyTreeNode> config) #
Returns: FancyTreeNode

Adds a child node.

Parameters

node HtmlForgeX.FancyTreeNode requiredposition: 0
Node to add.

Returns

The added node.

public FancyTreeNode AddNode(String title, String icon = null, Boolean nodeFolder = false) #
Returns: FancyTreeNode

Creates and adds a child node.

Parameters

title System.String requiredposition: 0
Child title.
icon System.String = null optionalposition: 1
Child icon.
nodeFolder System.Boolean = false optionalposition: 2
Whether the child is a folder.

Returns

The created node.

AddNode(System.Action{HtmlForgeX.FancyTreeNode} config) #

Creates and configures a child node using a callback.

Parameters

config System.Action{HtmlForgeX.FancyTreeNode} required
Configuration delegate.

Returns

The created node.

public FancyTreeNode Icon(String icon) #
Returns: FancyTreeNode

Sets the icon for the node.

Parameters

icon System.String requiredposition: 0
Icon name.

Returns

The current FancyTreeNode.

public FancyTreeNode Title(String title) #
Returns: FancyTreeNode

Sets the display title for the node.

Parameters

title System.String requiredposition: 0
Title text.

Returns

The current FancyTreeNode.

Properties

public String NodeTitle { get; set; } #
JsonPropertyName("title") JsonIgnore(Condition = 3)

Display text for the node.

public String NodeIcon { get; set; } #
JsonPropertyName("icon") JsonIgnore(Condition = 3)

Name of the icon used for the node.

public Nullable<Boolean> NodeFolder { get; set; } #
JsonPropertyName("folder") JsonIgnore(Condition = 3)

Gets or sets whether the node represents a folder.

public List<FancyTreeNode> Nodes { get; set; } #
JsonPropertyName("children")

Child nodes contained under this node.