ClassDocumentElementCollection
Represents a collection of document elements in Telerik's document model.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class DocumentElementCollection : ICollection<DocumentElement>, IEnumerable<DocumentElement>, IEnumerable
Inheritance: objectDocumentElementCollection
Implements:
Constructors
DocumentElementCollection(DocumentElement)
Initializes a new instance of the DocumentElementCollection class.
Declaration
public DocumentElementCollection(DocumentElement owner)
Parameters
owner
The owner.
Properties
Count
Gets the number of elements contained in the ICollection<T>.
IsEmpty
Gets a value indicating whether this instance is empty.
Declaration
public bool IsEmpty { get; }
Property Value
true if this instance is empty; otherwise, false.
IsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Exceptions
Implements
Methods
Add(DocumentElement)
Adds an item to the collection.
Declaration
public void Add(DocumentElement item)
Parameters
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
item
The object after which another object should be added.
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
item
The object before which another object should be added.
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
item
The object to locate in the collection.
Returns
true if the object is found in the collection; otherwise, false.
Exceptions
Implements
CopyTo(DocumentElement[], int)
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Declaration
public void CopyTo(DocumentElement[] array, int arrayIndex)
Parameters
array
The one-dimensional Array that is the destination of the elements copied from the ICollection<T>. The Array must have zero-based indexing.
arrayIndex
The zero-based index in array at which copying begins.
Exceptions
Implements
Detach(DocumentElement)
Removes an elements from its Parent.
Declaration
public bool Detach(DocumentElement item)
Parameters
item
The object to detach from the collection.
Returns
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<DocumentElement> GetEnumerator()
Returns
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
item
The object to remove from the collection.
Returns
true if the item has been successfully removed from the collection; otherwise, false.
Implements