OrgNode
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Describes a person, department, or asset in an OrgChart hierarchy.
- C#
- VB.NET
public class OrgNode : INotifyPropertyChanged
Public Class OrgNode
Inherits 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
OrgNode()
Initializes a new instance of OrgNode.
Properties
Id
String: Gets or sets the stable, nonempty, case-sensitive identity; defaults to a generated GUID.
Image
Image: Gets or sets the borrowed portrait image; the caller retains ownership. (Default: null)
ImageSource
String: Gets or sets the image URL or theme image used when Image is null. (Default: "")
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.
SubText
String: Gets or sets the plain-text secondary label. (Default: "")
Tag
Object: Gets or sets application data retained only on the server. (Default: null)
Text
String: Gets or sets the plain-text primary label. (Default: "")
Tone
MeterTone: Gets or sets the semantic avatar tone. (Default: Primary)
Events
PropertyChanged
PropertyChangedEventHandler Occurs after a presentation or hierarchy property changes.