Class DocumentElementCollection
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Documents.dll
Syntax
public class DocumentElementCollection : ICollection<DocumentElement>, IEnumerable<DocumentElement>, IEnumerable
Constructors
DocumentElementCollection(DocumentElement)
Initializes a new instance of the DocumentElementCollection class.
Declaration
public DocumentElementCollection(DocumentElement owner)
Parameters
DocumentElement
owner
The owner. |
Properties
Count
Gets the number of elements contained in the System.Collections.Generic.ICollection<T>.
Declaration
public int Count { get; }
Property Value
System.Int32
|
Implements
First
Gets the first LayoutBox inside the collection.
Declaration
public LayoutBox First { get; }
Property Value
LayoutBox
The first. |
IsEmpty
Gets a value indicating whether this instance is empty.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean
|
IsReadOnly
Gets a value indicating whether the System.Collections.Generic.ICollection<T> is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
System.Boolean
|
Implements
Exceptions
System.NotImplementedException
|
Methods
Add(DocumentElement)
Adds an item to the collection.
Declaration
public void Add(DocumentElement item)
Parameters
DocumentElement
item
The object to add to the collection. |
Implements
AddAfter(DocumentElement, DocumentElement)
Adds an item after another one into the collection.
Declaration
public void AddAfter(DocumentElement item, DocumentElement newItem)
Parameters
DocumentElement
item
The object after which another object should be added. |
DocumentElement
newItem
The object to add to the collection. |
AddBefore(DocumentElement, DocumentElement)
Adds an item before another one into the collection.
Declaration
public void AddBefore(DocumentElement item, DocumentElement newItem)
Parameters
DocumentElement
item
The object before which another object should be added. |
DocumentElement
newItem
The object to add to the collection. |
Clear()
Removes all items from the collection.
Declaration
public void Clear()
Implements
Contains(DocumentElement)
Determines whether the collection contains a specific object.
Declaration
public bool Contains(DocumentElement item)
Parameters
DocumentElement
item
The object to locate in the collection. |
Returns
System.Boolean
|
Implements
Exceptions
System.NotImplementedException
|
CopyTo(DocumentElement[], Int32)
Copies the elements of the System.Collections.Generic.ICollection<T> to an System.Array, starting at a particular System.Array index.
Declaration
public void CopyTo(DocumentElement[] array, int arrayIndex)
Parameters
DocumentElement[]
array
The one-dimensional System.Array that is the destination of the elements copied from the System.Collections.Generic.ICollection<T>. The System.Array must have zero-based indexing. |
System.Int32
arrayIndex
The zero-based index in |
Implements
Exceptions
System.NotImplementedException
|
Detach(DocumentElement)
Removes an elements from its Parent.
Declaration
public bool Detach(DocumentElement item)
Parameters
DocumentElement
item
The object to detach from the collection. |
Returns
System.Boolean
|
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<DocumentElement> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<DocumentElement>
An enumerator that can be used to iterate through the collection. |
Implements
Remove(DocumentElement)
Removes a specific object from the collection.
Declaration
public bool Remove(DocumentElement item)
Parameters
DocumentElement
item
The object to remove from the collection. |
Returns
System.Boolean
|
Implements
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
|