Provides access to a document element's children and updates their layout-box structure when they are changed.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentElementCollection : IEnumerable
Inheritance: objectDocumentElementCollection
Implements:
Constructors
Initializes a new instance of the DocumentElementCollection class.
public DocumentElementCollection(DocumentElement owner)
The owner.
Properties
Gets the first LayoutBox inside the collection.
public LayoutBox First { get; }
The first.
Gets a value indicating whether this instance is empty.
public bool IsEmpty { get; }
true if this instance is empty; otherwise, false.
This property is not implemented.
Methods
Adds an item to the collection.
public void Add(DocumentElement item)
The object to add to the collection.
Adds an item after another one into the collection.
public void AddAfter(DocumentElement item, DocumentElement newItem)
The object after which another object should be added.
newItemDocumentElementThe object to add to the collection.
Adds an item before another one into the collection.
public void AddBefore(DocumentElement item, DocumentElement newItem)
The object before which another object should be added.
newItemDocumentElementThe object to add to the collection.
Removes all items from the collection.
public void Clear()
This operation is not implemented.
public bool Contains(DocumentElement item)
The object to locate in the collection.
Returns:This method does not return.
Exceptions: NotImplementedExceptionThe method is called.
public void CopyTo(DocumentElement[] array, int arrayIndex)
The one-dimensional Array that is the destination of the elements copied from the ICollection<T>. The Array must have zero-based indexing.
arrayIndexintThe zero-based index in array at which copying begins.
Removes an elements from its Parent.
public bool Detach(DocumentElement item)
The object to detach from the collection.
Returns:Returns an enumerator that iterates through the collection.
public IEnumerator<DocumentElement> GetEnumerator()
IEnumerator<DocumentElement>
An enumerator that can be used to iterate through the collection.
Removes a specific object from the collection.
public bool Remove(DocumentElement item)
The object to remove from the collection.
Returns:true if the item has been successfully removed from the collection; otherwise, false.