Class SpecializedDocumentElementCollection<TInheritor>
Inheritance
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Documents.dll
Syntax
public abstract class SpecializedDocumentElementCollection<TInheritor> : Object, ICollection<TInheritor>, IEnumerable<TInheritor>, IList, ICollection, IEnumerable where TInheritor : DocumentElement
Type Parameters
TInheritor
|
Properties
Count
Declaration
public int Count { get; }
Property Value
System.Int32
|
First
Declaration
public TInheritor First { get; }
Property Value
TInheritor
|
InnerCollection
Declaration
protected DocumentElementCollection InnerCollection { get; }
Property Value
DocumentElementCollection
|
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
System.Boolean
|
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
TInheritor
item
The object to add to the System.Collections.Generic.ICollection<>. |
AddAfter(TInheritor, TInheritor)
Declaration
public void AddAfter(TInheritor item, TInheritor newItem)
Parameters
TInheritor
item
|
TInheritor
newItem
|
AddBefore(TInheritor, TInheritor)
Declaration
public void AddBefore(TInheritor item, TInheritor newItem)
Parameters
TInheritor
item
|
TInheritor
newItem
|
AddRange(IEnumerable<TInheritor>)
Declaration
public void AddRange(IEnumerable<TInheritor> range)
Parameters
System.Collections.Generic.IEnumerable<TInheritor>
range
|
Clear()
Declaration
public void Clear()
Contains(TInheritor)
Declaration
public bool Contains(TInheritor item)
Parameters
TInheritor
item
|
Returns
System.Boolean
|
CopyTo(TInheritor[], Int32)
Declaration
public void CopyTo(TInheritor[] array, int arrayIndex)
Parameters
TInheritor[]
array
|
System.Int32
arrayIndex
|
Detach(TInheritor)
Declaration
public bool Detach(TInheritor item)
Parameters
TInheritor
item
|
Returns
System.Boolean
|
GetEnumerator()
Declaration
public IEnumerator<TInheritor> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<TInheritor>
|
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
DocumentElement
element
The element. |
Remove(TInheritor)
Declaration
public bool Remove(TInheritor item)
Parameters
TInheritor
item
|
Returns
System.Boolean
|
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
TInheritor
item
|
Events
CollectionChanged
Occurs when the collection is changed.
Declaration
public event EventHandler CollectionChanged
Event Type
System.EventHandler
|
ElementAdded
Occurs when a DocumentElement is added.
Declaration
public event EventHandler<ElementAddedEventArgs> ElementAdded
Event Type
System.EventHandler<ElementAddedEventArgs>
|