StackCollection<T>
Represents Stack collection.
Definition
Namespace:Telerik.Windows.Documents.Utils
Assembly:Telerik.Windows.Controls.dll
Type Parameters:
T
Syntax:
public class StackCollection<T> : ICollection<T>, IEnumerable<T>, IEnumerable where T : IStackCollectionElement
Inheritance: objectStackCollection<T>
Derived Classes:
Implements:
Constructors
Initializes a new instance of the StackCollection class.
public StackCollection()
Properties
Gets the number of elements contained in the collection.
public int Count { get; }
The number of elements contained in the collection.
Implements:
Gets a value indicating whether the ICollection<T> is read-only.
public bool IsReadOnly { get; }
true if the ICollection<T> is read-only; otherwise, false.
Implements:
Methods
Adds the specified item.
public void Add(T item)
The item.
Implements:
Adds the first.
public void AddFirst(T element)
The element.
Adds the last.
public void AddLast(T element)
The element.
Removes all items from the ICollection<T>.
Determines whether [contains] [the specified item].
Copies to.
public void CopyTo(T[] array, int arrayIndex)
The array.
arrayIndexintIndex of the array.
Implements:
Gets the name of the element by.
public T GetElementByName(string elementName)
Name of the element.
Returns:T
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
IEnumerator<T>
A IEnumerator<T> that can be used to iterate through the collection.
Implements: