Skip to main content
Version: 4.2

OrgNode

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Describes a person, department, or asset in an OrgChart hierarchy.

public class OrgNode : INotifyPropertyChanged

Id is immutable while owned. ParentId may refer to a node added later; unknown parents render as roots. Duplicate identities and cycles are rejected before mutation. Images are borrowed.

Example:

chart.Nodes.Add(new OrgNode { Id = "lead", Text = "Nadia Delacroix" });
chart.Nodes.Add(new OrgNode { ParentId = "lead", Text = "Leila Costa", SubText = "Infrastructure" });

Constructors​

Instance member OrgNode()​

Initializes a new instance of OrgNode.

Properties​

Instance member Id​

String: Gets or sets the stable, nonempty, case-sensitive identity; defaults to a generated GUID.

Instance member Image​

Image: Gets or sets the borrowed portrait image; the caller retains ownership. (Default: null)

Instance member ImageSource​

String: Gets or sets the image URL or theme image used when Image is null. (Default: "")

Instance member ParentId​

String: Gets or sets the parent identity; empty or unknown identities display this node as a root. (Default: "")

Setting this property directly changes the model without raising NodeMoving or NodeMoved. Use OrgChart.MoveNode for the cancelable application workflow.

Instance member SubText​

String: Gets or sets the plain-text secondary label. (Default: "")

Instance member Tag​

Object: Gets or sets application data retained only on the server. (Default: null)

Instance member Text​

String: Gets or sets the plain-text primary label. (Default: "")

Instance member Tone​

MeterTone: Gets or sets the semantic avatar tone. (Default: Primary)

Events​

Instance member PropertyChanged​

PropertyChangedEventHandler Occurs after a presentation or hierarchy property changes.