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

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Type Parameters:

TInheritor

Syntax:

C#
public abstract class SpecializedDocumentElementCollection<TInheritor> : IList, ICollection, IEnumerable where TInheritor : DocumentElement

Inheritance: objectSpecializedDocumentElementCollection<TInheritor>

Derived Classes: BlockCollectionInlineCollectionParagraphCollectionSectionCollectionTableCellCollectionTableRowCollection...

Implements: ICollectionIEnumerableIList

Properties

C#
public int Count { get; }

First

TInheritor

C#
public TInheritor First { get; }
C#
protected DocumentElementCollection InnerCollection { get; }
C#
public bool IsReadOnly { get; }

Last

TInheritor

C#
public TInheritor Last { get; }

Methods

Adds a DocumentElement to the collection.

C#
public void Add(TInheritor item)
Parameters:itemTInheritor

The object to add to the ICollection<T>.

C#
public void AddAfter(TInheritor item, TInheritor newItem)
Parameters:itemTInheritornewItemTInheritor
C#
public void AddBefore(TInheritor item, TInheritor newItem)
Parameters:itemTInheritornewItemTInheritor
C#
public void AddRange(IEnumerable<TInheritor> range)
Parameters:rangeIEnumerable<TInheritor>
C#
public void Clear()
C#
public bool Contains(TInheritor item)
Parameters:itemTInheritorReturns:

bool

C#
public void CopyTo(TInheritor[] array, int arrayIndex)
Parameters:arrayTInheritor[]arrayIndexint
C#
public bool Detach(TInheritor item)
Parameters:itemTInheritorReturns:

bool

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

IEnumerator<TInheritor>

Called when the collection is changed. Raises CollectionChanged event.

C#
protected virtual void OnCollectionChanged()

Called when DocumentElement is added.

C#
protected virtual void OnElementAdded(DocumentElement element)
Parameters:elementDocumentElement

The element.

C#
public bool Remove(TInheritor item)
Parameters:itemTInheritorReturns:

bool

Converts the collection to an array.

C#
public TInheritor[] ToArray()
Returns:

TInheritor[]

An array of DocumentElements.

C#
protected virtual void VerifyChildrenOverride(TInheritor item)
Parameters:itemTInheritor

Events

Occurs when the collection is changed.

C#
public event EventHandler CollectionChanged

Occurs when a DocumentElement is added.

C#
public event EventHandler<ElementAddedEventArgs> ElementAdded