Class
SpecializedDocumentElementCollection<TInheritor>

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Type Parameters:

TInheritor

Syntax:

cs-api-definition
public abstract class SpecializedDocumentElementCollection<TInheritor> : ICollection<TInheritor>, IEnumerable<TInheritor>, IList, ICollection, IEnumerable where TInheritor : DocumentElement

Inheritance: objectSpecializedDocumentElementCollection<TInheritor>

Derived Classes: BlockCollectionInlineCollectionParagraphCollectionSectionCollectionTableCellCollectionTableRowCollection

Implements: ICollectionICollection<TInheritor>IEnumerableIEnumerable<TInheritor>IList

Properties

Count

Declaration

cs-api-definition
public int Count { get; }

Property Value

int

Implements ICollection<TInheritor>.Count

First

Declaration

cs-api-definition
public TInheritor First { get; }

Property Value

TInheritor

InnerCollection

Declaration

cs-api-definition
protected DocumentElementCollection InnerCollection { get; }

Property Value

DocumentElementCollection

IsReadOnly

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

Implements ICollection<TInheritor>.IsReadOnly

Last

Declaration

cs-api-definition
public TInheritor Last { get; }

Property Value

TInheritor

Methods

Add(TInheritor)

Adds a DocumentElement to the collection.

Declaration

cs-api-definition
public void Add(TInheritor item)

Parameters

item

TInheritor

The object to add to the ICollection<T>.

Implements ICollection<TInheritor>.Add(TInheritor)

AddAfter(TInheritor, TInheritor)

Declaration

cs-api-definition
public void AddAfter(TInheritor item, TInheritor newItem)

Parameters

item

TInheritor

newItem

TInheritor

AddBefore(TInheritor, TInheritor)

Declaration

cs-api-definition
public void AddBefore(TInheritor item, TInheritor newItem)

Parameters

item

TInheritor

newItem

TInheritor

AddRange(IEnumerable<TInheritor>)

Declaration

cs-api-definition
public void AddRange(IEnumerable<TInheritor> range)

Parameters

range

IEnumerable<TInheritor>

Clear()

Declaration

cs-api-definition
public void Clear()

Implements ICollection<TInheritor>.Clear()

Contains(TInheritor)

Declaration

cs-api-definition
public bool Contains(TInheritor item)

Parameters

item

TInheritor

Returns

bool

Implements ICollection<TInheritor>.Contains(TInheritor)

CopyTo(TInheritor[], int)

Declaration

cs-api-definition
public void CopyTo(TInheritor[] array, int arrayIndex)

Parameters

array

TInheritor[]

arrayIndex

int

Implements ICollection<TInheritor>.CopyTo(TInheritor[], int)

Detach(TInheritor)

Declaration

cs-api-definition
public bool Detach(TInheritor item)

Parameters

item

TInheritor

Returns

bool

GetEnumerator()

Declaration

cs-api-definition
public IEnumerator<TInheritor> GetEnumerator()

Returns

IEnumerator<TInheritor>

Implements IEnumerable<TInheritor>.GetEnumerator()

OnCollectionChanged()

Called when the collection is changed. Raises CollectionChanged event.

Declaration

cs-api-definition
protected virtual void OnCollectionChanged()

OnElementAdded(DocumentElement)

Called when DocumentElement is added.

Declaration

cs-api-definition
protected virtual void OnElementAdded(DocumentElement element)

Parameters

element

DocumentElement

The element.

Remove(TInheritor)

Declaration

cs-api-definition
public bool Remove(TInheritor item)

Parameters

item

TInheritor

Returns

bool

Implements ICollection<TInheritor>.Remove(TInheritor)

ToArray()

Converts the collection to an array.

Declaration

cs-api-definition
public TInheritor[] ToArray()

Returns

TInheritor[]

An array of DocumentElements.

VerifyChildrenOverride(TInheritor)

Declaration

cs-api-definition
protected virtual void VerifyChildrenOverride(TInheritor item)

Parameters

item

TInheritor

Events

CollectionChanged

Occurs when the collection is changed.

Declaration

cs-api-definition
public event EventHandler CollectionChanged

Event Value

EventHandler

ElementAdded

Occurs when a DocumentElement is added.

Declaration

cs-api-definition
public event EventHandler<ElementAddedEventArgs> ElementAdded

Event Value

EventHandler<ElementAddedEventArgs>