ClassSpecializedDocumentElementCollection<TInheritor>
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Type Parameters:
TInheritor
Syntax:
public abstract class SpecializedDocumentElementCollection<TInheritor> : ICollection<TInheritor>, IEnumerable<TInheritor>, IList, ICollection, IEnumerable where TInheritor : DocumentElement
Inheritance: objectSpecializedDocumentElementCollection<TInheritor>
Derived Classes:
Implements:
Properties
First
Declaration
public TInheritor First { get; }
Property Value
TInheritor
InnerCollection
Declaration
protected DocumentElementCollection InnerCollection { get; }
Property Value
Last
Declaration
public TInheritor Last { get; }
Property Value
TInheritor
Methods
Add(TInheritor)
Adds a DocumentElement to the collection.
Declaration
public void Add(TInheritor item)
Parameters
item
TInheritor
The object to add to the ICollection<T>.
Implements
AddAfter(TInheritor, TInheritor)
Declaration
public void AddAfter(TInheritor item, TInheritor newItem)
Parameters
item
TInheritor
newItem
TInheritor
AddBefore(TInheritor, TInheritor)
Declaration
public void AddBefore(TInheritor item, TInheritor newItem)
Parameters
item
TInheritor
newItem
TInheritor
AddRange(IEnumerable<TInheritor>)
Declaration
public void AddRange(IEnumerable<TInheritor> range)
Parameters
range
IEnumerable<TInheritor>
Clear()
Declaration
public void Clear()
Implements
Contains(TInheritor)
Declaration
public bool Contains(TInheritor item)
Parameters
item
TInheritor
Returns
Implements
CopyTo(TInheritor[], int)
Declaration
public void CopyTo(TInheritor[] array, int arrayIndex)
Parameters
array
TInheritor[]
arrayIndex
Implements
Detach(TInheritor)
Declaration
public bool Detach(TInheritor item)
Parameters
item
TInheritor
Returns
GetEnumerator()
Declaration
public IEnumerator<TInheritor> GetEnumerator()
Returns
IEnumerator<TInheritor>
Implements
OnCollectionChanged()
Called when the collection is changed. Raises CollectionChanged event.
Declaration
protected virtual void OnCollectionChanged()
OnElementAdded(DocumentElement)
Called when DocumentElement is added.
Declaration
protected virtual void OnElementAdded(DocumentElement element)
Parameters
element
The element.
Remove(TInheritor)
Declaration
public bool Remove(TInheritor item)
Parameters
item
TInheritor
Returns
Implements
ToArray()
Converts the collection to an array.
Declaration
public TInheritor[] ToArray()
Returns
TInheritor[]
An array of DocumentElements.
VerifyChildrenOverride(TInheritor)
Declaration
protected virtual void VerifyChildrenOverride(TInheritor item)
Parameters
item
TInheritor
Events
CollectionChanged
Occurs when the collection is changed.
ElementAdded
Occurs when a DocumentElement is added.
Declaration
public event EventHandler<ElementAddedEventArgs> ElementAdded
Event Value