New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Represents collection of OrgChartNode in the RadOrgChart control.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class OrgChartNodeCollection : List<OrgChartNode>, IList<OrgChartNode>, ICollection<OrgChartNode>, IList, ICollection, IReadOnlyList<OrgChartNode>, IReadOnlyCollection<OrgChartNode>, IEnumerable<OrgChartNode>, IEnumerable, IOrgChartRendererContainer, IXmlSerializable, IDisposable

Inheritance: objectList<OrgChartNode>OrgChartNodeCollection

Implements: ICollectionICollection<OrgChartNode>IDisposableIEnumerableIEnumerable<OrgChartNode>IListIList<OrgChartNode>IOrgChartRendererContainerIReadOnlyCollection<OrgChartNode>IReadOnlyList<OrgChartNode>IXmlSerializable...

Inherited Members List<OrgChartNode>.AsReadOnly()List<OrgChartNode>.BinarySearch(int, int, OrgChartNode, IComparer<OrgChartNode>)List<OrgChartNode>.BinarySearch(OrgChartNode)List<OrgChartNode>.BinarySearch(OrgChartNode, IComparer<OrgChartNode>)List<OrgChartNode>.Contains(OrgChartNode)List<OrgChartNode>.ConvertAll<TOutput>(Converter<OrgChartNode, TOutput>)List<OrgChartNode>.CopyTo(OrgChartNode[])List<OrgChartNode>.CopyTo(int, OrgChartNode[], int, int)List<OrgChartNode>.CopyTo(OrgChartNode[], int)List<OrgChartNode>.Exists(Predicate<OrgChartNode>)List<OrgChartNode>.Find(Predicate<OrgChartNode>)List<OrgChartNode>.FindAll(Predicate<OrgChartNode>)List<OrgChartNode>.FindIndex(Predicate<OrgChartNode>)List<OrgChartNode>.FindIndex(int, Predicate<OrgChartNode>)List<OrgChartNode>.FindIndex(int, int, Predicate<OrgChartNode>)List<OrgChartNode>.FindLast(Predicate<OrgChartNode>)List<OrgChartNode>.FindLastIndex(Predicate<OrgChartNode>)List<OrgChartNode>.FindLastIndex(int, Predicate<OrgChartNode>)List<OrgChartNode>.FindLastIndex(int, int, Predicate<OrgChartNode>)List<OrgChartNode>.ForEach(Action<OrgChartNode>)List<OrgChartNode>.GetEnumerator()List<OrgChartNode>.GetRange(int, int)List<OrgChartNode>.IndexOf(OrgChartNode)List<OrgChartNode>.IndexOf(OrgChartNode, int)List<OrgChartNode>.IndexOf(OrgChartNode, int, int)List<OrgChartNode>.LastIndexOf(OrgChartNode)List<OrgChartNode>.LastIndexOf(OrgChartNode, int)List<OrgChartNode>.LastIndexOf(OrgChartNode, int, int)List<OrgChartNode>.Reverse()List<OrgChartNode>.Reverse(int, int)List<OrgChartNode>.Sort()List<OrgChartNode>.Sort(IComparer<OrgChartNode>)List<OrgChartNode>.Sort(int, int, IComparer<OrgChartNode>)List<OrgChartNode>.Sort(Comparison<OrgChartNode>)List<OrgChartNode>.ToArray()List<OrgChartNode>.TrimExcess()List<OrgChartNode>.TrueForAll(Predicate<OrgChartNode>)List<OrgChartNode>.CapacityList<OrgChartNode>.CountList<OrgChartNode>.this[int]object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes a new instance of the OrgChartNodeCollection class.

C#
public OrgChartNodeCollection()

Properties

Check if the OrgChartNodeCollection is the root node collection for RadOrgChart control.

C#
public bool IsRootNodeCollection { get; }

Gets and sets OrgChartNodeCollection parent container.

C#
public IOrgChartNodeContainer NodesContainer { get; set; }

Gets the OrgChartNodeCollectionRenderer for OrgChartNodeCollection

C#
public OrgChartNodeCollectionRenderer Renderer { get; }

Methods

Add a new OrgChartNode to the OrgChartNodeCollection if the collection does not contains it.

C#
public void Add(OrgChartNode node)
Parameters:nodeOrgChartNode

The added OrgChartNode

Example:
C#
This example shows how to add a <xref href="Telerik.Web.UI.OrgChartNode?text=Node" data-throw-if-not-resolved="false"></xref> into OrgChartNodeCollection

Add a collection of OrgChartNode to the OrgChartNodeCollection.

C#
public void AddRange(IEnumerable<OrgChartNode> collection)
Parameters:collectionIEnumerable<OrgChartNode>

IEnumerable of OrgChartNode

Remove all OrgChartNode in the collection.

C#
public void Clear()
C#
public void Dispose()

Implements: IDisposable.Dispose()

C#
protected virtual void Dispose(bool disposing)
Parameters:disposingbool

Insert a new OrgChartNode to the OrgChartNodeCollection on a specific position.

C#
public void Insert(int index, OrgChartNode node)
Parameters:indexint

Integer position to insert at

nodeOrgChartNode

The added OrgChartNode

Example:
C#
This example shows how to insert a <xref href="Telerik.Web.UI.OrgChartNode?text=Node" data-throw-if-not-resolved="false"></xref> into OrgChartNodeCollection on first position

Insert a collection of OrgChartNode to a specified index in the OrgChartNodeCollection.

C#
public void InsertRange(int index, IEnumerable<OrgChartNode> collection)
Parameters:indexint

Integer the position to insert at

collectionIEnumerable<OrgChartNode>

IEnumerable of OrgChartNode

C#
protected void OnNodeAdded(OrgChartNode node)
Parameters:nodeOrgChartNode
C#
protected void OnNodeAdding(OrgChartNode node)
Parameters:nodeOrgChartNode
C#
protected void OnNodeRemoving(OrgChartNode node)
Parameters:nodeOrgChartNode

Remove a OrgChartNode from the OrgChartNodeCollection if the collection contains it.

C#
public void Remove(OrgChartNode node)
Parameters:nodeOrgChartNode

The removed OrgChartNode

Example:
C#
This example shows how to remove a <xref href="Telerik.Web.UI.OrgChartNode?text=Node" data-throw-if-not-resolved="false"></xref> from OrgChartNodeCollection

Remove all OrgChartNode that match the passed criteria from the collection.

C#
public void RemoveAll(Predicate<OrgChartNode> match)
Parameters:matchPredicate<OrgChartNode>

Predicate to match OrgChartNode for removal

Remove the OrgChartNode on the specified position in the collection.

C#
public void RemoveAt(int index)
Parameters:indexint

Integer index

Removes a range of OrgChartNode in the collection.

C#
public void RemoveRange(int index, int count)
Parameters:indexint

Integer index - the starting point of the range

countint

Integer count - the size of the range

Synchronize OrgChartNodeCollectionRenderer properties during OnPreRender stage.

C#
public void SyncRenderedProperties()

Implements: IOrgChartRendererContainer.SyncRenderedProperties()