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

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class NavigationNodeCollection : List<NavigationNode>, IList<NavigationNode>, ICollection<NavigationNode>, IList, ICollection, IReadOnlyList<NavigationNode>, IReadOnlyCollection<NavigationNode>, IEnumerable<NavigationNode>, IEnumerable

Inheritance: objectList<NavigationNode>NavigationNodeCollection

Implements: ICollectionICollection<NavigationNode>IEnumerableIEnumerable<NavigationNode>IListIList<NavigationNode>IReadOnlyCollection<NavigationNode>IReadOnlyList<NavigationNode>...

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

Constructors

C#
public NavigationNodeCollection()
C#
public NavigationNodeCollection(RadNavigation control, INavigationNodeContainer nodesContainer)
Parameters:controlRadNavigationnodesContainerINavigationNodeContainer

Properties

Gets and sets NavigationNodeCollection parent container.

C#
public INavigationNodeContainer NodesContainer { get; set; }

Methods

Add a new NavigationNode to the NavigationNodeCollection if the collection does not contains it.

C#
public void Add(NavigationNode node)
Parameters:nodeNavigationNode

The Node.

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

Add an IEnumerable of NavigationNode to the NavigationNodeCollection.

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

IEnumerable ofNavigationNode

Remove all NavigationNode in the collection.

C#
public void Clear()
C#
public void Insert(int index, NavigationNode node)
Parameters:indexintnodeNavigationNode

Insert a collection of NavigationNode to a specified index in the NavigationNodeCollection.

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

Integer the position to insert at

collectionIEnumerable<NavigationNode>

IEnumerable of NavigationNode

C#
protected void OnNodeAdded(NavigationNode node)
Parameters:nodeNavigationNode
C#
protected void OnNodeAdding(NavigationNode node)
Parameters:nodeNavigationNode
C#
protected void OnNodeRemoving(NavigationNode node)
Parameters:nodeNavigationNode

Remove a NavigationNode from the NavigationNodeCollection if the collection contains it.

C#
public void Remove(NavigationNode node)
Parameters:nodeNavigationNode

The Node.

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

Remove all NavigationNode in the collection matching the passed condition.

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

Predicate to match NavigationNode

Remove the NavigationNode on the specified position in the collection.

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

Integer index

Removes a range of NavigationNode 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