Skip to main content
Version: 4.2

OrgNodeCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Owns ordered hierarchy nodes, enforcing unique identities and acyclic parent relationships.

public class OrgNodeCollection : Collection<OrgNode>

Each node belongs to at most one collection. Siblings and roots follow collection order. Children can be added before their parents. Removing a parent leaves its children as roots.

Example:

chart.Nodes.Add(new OrgNode { Id = "team", Text = "Operations" });
chart.Nodes.Add(new OrgNode { ParentId = "team", Text = "Support" });

Constructors​

Instance member OrgNodeCollection()​

Initializes a new instance of OrgNodeCollection.

Methods​

Protected member ClearItems()​

Removes all nodes and releases their ownership.

Protected member InsertItem(index, item)​

Validates and inserts an unowned node.

ParameterTypeDescription
indexInt32Insertion index.
itemOrgNodeNode to own.

Protected member RemoveItem(index)​

Removes a node and releases its ownership without removing descendants.

ParameterTypeDescription
indexInt32Removal index.

Protected member SetItem(index, item)​

Replaces an owned node after validating the resulting hierarchy.

ParameterTypeDescription
indexInt32Replacement index.
itemOrgNodeNew unowned node.