New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class DocumentElementCollection : IEnumerable

Inheritance: objectDocumentElementCollection

Implements: IEnumerable

Constructors

Initializes a new instance of the DocumentElementCollection class.

C#
public DocumentElementCollection(DocumentElement owner)
Parameters:ownerDocumentElement

The owner.

Properties

Gets the number of elements contained in the ICollection<T>.

C#
public int Count { get; }

Gets the first LayoutBox inside the collection.

C#
public LayoutBox First { get; }
Property Value:

The first.

Gets a value indicating whether this instance is empty.

C#
public bool IsEmpty { get; }
Property Value:

true if this instance is empty; otherwise, false.

Gets a value indicating whether the ICollection<T> is read-only.

C#
public bool IsReadOnly { get; }
Exceptions:

NotImplementedException

Methods

Adds an item to the collection.

C#
public void Add(DocumentElement item)
Parameters:itemDocumentElement

The object to add to the collection.

Adds an item after another one into the collection.

C#
public void AddAfter(DocumentElement item, DocumentElement newItem)
Parameters:itemDocumentElement

The object after which another object should be added.

newItemDocumentElement

The object to add to the collection.

Adds an item before another one into the collection.

C#
public void AddBefore(DocumentElement item, DocumentElement newItem)
Parameters:itemDocumentElement

The object before which another object should be added.

newItemDocumentElement

The object to add to the collection.

Removes all items from the collection.

C#
public void Clear()

Determines whether the collection contains a specific object.

C#
public bool Contains(DocumentElement item)
Parameters:itemDocumentElement

The object to locate in the collection.

Returns:

bool

true if the object is found in the collection; otherwise, false.

Exceptions:

NotImplementedException

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

C#
public void CopyTo(DocumentElement[] array, int arrayIndex)
Parameters:arrayDocumentElement[]

The one-dimensional Array that is the destination of the elements copied from the ICollection<T>. The Array must have zero-based indexing.

arrayIndexint

The zero-based index in array at which copying begins.

Exceptions:

NotImplementedException

Removes an elements from its Parent.

C#
public bool Detach(DocumentElement item)
Parameters:itemDocumentElement

The object to detach from the collection.

Returns:

bool

Returns an enumerator that iterates through the collection.

C#
public IEnumerator<DocumentElement> GetEnumerator()
Returns:

IEnumerator<DocumentElement>

An enumerator that can be used to iterate through the collection.

Removes a specific object from the collection.

C#
public bool Remove(DocumentElement item)
Parameters:itemDocumentElement

The object to remove from the collection.

Returns:

bool

true if the item has been successfully removed from the collection; otherwise, false.