ClassElementCollection<T>
Represents a typed collection of Node instances. For example an element instance may aggregate two or more typed collections of different nodes.
Definition
Namespace:Telerik.Core
Assembly:Telerik.WinUI.Controls.dll
Type Parameters:
T
Must be a Node.
Syntax:
public class ElementCollection<T> : Collection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : Node
Inheritance: objectCollection<T>ElementCollection<T>
Derived Classes:
Implements:
Inherited Members
Constructors
ElementCollection(Element)
Initializes a new instance of the ElementCollection<T> class.
Declaration
public ElementCollection(Element owner)
Parameters
owner
The owner.
Properties
ShouldCacheIndexes
Gets a value indicating whether the collection should cache the index of each node added. This will improve performance if many IndexOf calls will be performed upon this collection.
Declaration
protected virtual bool ShouldCacheIndexes { get; }
Property Value
Methods
ClearItems()
Removes all items from the collection.
Declaration
protected override void ClearItems()
Overrides
InsertItem(int, T)
Inserts the item at the specified index.
Declaration
protected override void InsertItem(int index, T item)
Parameters
index
The index.
item
T
The item.
Overrides
RemoveItem(int)
Removes the item at the specified index.
Declaration
protected override void RemoveItem(int index)
Parameters
index
The index.
Overrides