Represents a collection of RadSiteMapNode objects in a RadSiteMap control.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class RadSiteMapNodeCollection : ControlItemCollection, IList, ICollection, IStateManager, IList<RadSiteMapNode>, ICollection<RadSiteMapNode>, IEnumerable<RadSiteMapNode>, IEnumerable
Inheritance: objectStateManagedCollectionControlItemCollectionRadSiteMapNodeCollection
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadSiteMapNodeCollection class.
public RadSiteMapNodeCollection(Control parent)
The parent RadSiteMap control.
Properties
Gets or sets the RadSiteMapNode at the specified index.
Methods
Appends a node to the collection.
public void Add(RadSiteMapNode node)
The node to add to the collection.
Implements:
Appends the specified array of RadSiteMapNode objects to the end of the current RadSiteMapNodeCollection.
public virtual void AddRange(IEnumerable<RadSiteMapNode> nodes)
The array of RadSiteMapNode to append to the end of the current RadSiteMapNodeCollection.
Returns the first RadSiteMapNode that matches the conditions defined by the specified predicate. The predicate should returns a boolean value.
public RadSiteMapNode FindNode(Predicate<RadSiteMapNode> match)
The Predicate <RadSiteMapNode> that defines the conditions of the element to search for.
Returns:Searches all nodes for a
public RadSiteMapNode FindNodeByText(string text, bool ignoreCase)
The text to search for
ignoreCaseboolA Boolean indicating a case-sensitive or insensitive comparison (true indicates a case-insensitive comparison).
Returns:A RadSiteMapNode whose Text property equals to the specified argument
Null (Nothing) is returned when no matching node is found.
This method is not recursive.
Searches all nodes for a
public RadSiteMapNode FindNodeByText(string text)
The text to search for
Returns:A RadSiteMapNode whose Text property equals to the specified argument.
Null (Nothing) is returned when no matching node is found.
This method is not recursive.
Inserts a node to the collection at the specified index.
public void Insert(int index, RadSiteMapNode node)
The zero-based index at which node should be inserted.
The node to insert into the collection.
Removes the specified node from the collection.
public void Remove(RadSiteMapNode node)
The node to remove from the collection.