ClassStackCollection<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
StackCollection()
Initializes a new instance of the StackCollection class.
Declaration
public StackCollection()
Properties
Count
Gets the number of elements contained in the collection.
Declaration
public int Count { get; }
Property Value
The number of elements contained in the collection.
Implements
IsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
true if the ICollection<T> is read-only; otherwise, false.
Implements
Methods
Add(T)
Adds the specified item.
Declaration
public void Add(T item)
Parameters
item
T
The item.
Implements
AddAfter(string, T)
Adds the after.
AddBefore(string, T)
Adds the before.
AddFirst(T)
Adds the first.
Declaration
public void AddFirst(T element)
Parameters
element
T
The element.
AddLast(T)
Adds the last.
Declaration
public void AddLast(T element)
Parameters
element
T
The element.
Clear()
Removes all items from the ICollection<T>.
Declaration
public void Clear()
Exceptions
The ICollection<T> is read-only.
Implements
Contains(T)
Determines whether [contains] [the specified item].
Declaration
public bool Contains(T item)
Parameters
item
T
The item.
Returns
Implements
Contains(string)
Determines whether [contains] [the specified element name].
CopyTo(T[], int)
Copies to.
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
array
T[]
The array.
arrayIndex
Index of the array.
Implements
GetElementByName(string)
Gets the name of the element by.
Declaration
public T GetElementByName(string elementName)
Parameters
elementName
Name of the element.
Returns
T
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
IEnumerator<T>
A IEnumerator<T> that can be used to iterate through the collection.
Implements
Remove(T)
Removes the specified item.
Declaration
public bool Remove(T item)
Parameters
item
T
The item.
Returns
Implements
Remove(string)
Removes the specified element name.