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.
Gets a value indicating whether the ICollection<T> is read-only.
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()
Determines whether the collection contains a specific object.
public bool Contains(DocumentElement item)
The object to locate in the collection.
Returns:true if the object is found in the collection; otherwise, false.
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.