Click or drag to resize
DocumentElementCollectionBaseT, TOwner Class
Provides based functionality for collections of document elements.
Inheritance Hierarchy

Namespace: Telerik.Windows.Documents.Core.Data
Assembly: Telerik.Windows.Documents.Core (in Telerik.Windows.Documents.Core.dll) Version: 2017.2.607.40 (2017.2.607.40)
Syntax
public abstract class DocumentElementCollectionBase<T, TOwner> : IList<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

T
The type of the document elements which should be added to the collection.
TOwner
The type of the owner of the collection.

The DocumentElementCollectionBaseT, TOwner type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds an item to the collection.
Public methodClear
Removes all items from the collection.
Public methodContains
Determines whether the collection contains a specific element.
Public methodCopyTo
Copies the elements of the collection to an Array, starting at a particular Array index.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodIndexOf
Determines the index of a specific element in the collection.
Public methodInsert
Inserts an element to the collection at the specified index.
Public methodInsertRange
Inserts an elements to the collection at the specified index.
Protected methodOnAfterRemove
Called when the element is removed.
Public methodRemove
Removes the first occurrence of a specific object from the collection.
Public methodRemoveAt
Removes the element at the specified index.
Public methodRemoveRange
Removes the range.
Protected methodSetParent
Sets the parent of the document element.
Protected methodVerifyDocumentElementOnInsert
Verifies the validity of the document element before it is inserted in the collection.
Top
Extension Methods
  NameDescription
Public Extension MethodAddRangeT(IEnumerableT)Overloaded.
Adds the elements from the specified collection - items to the end of the target collection.
(Defined by CollectionExtensions.)
Public Extension MethodAddRangeT(IEnumerableT)Overloaded.
Adds the given range of items to the current collection.
(Defined by CommonExtensions.)
Public Extension MethodAppendT(IEnumerableT)Overloaded.
Appends elements from two sequences.
(Defined by CollectionExtensions.)
Public Extension MethodAppendT(T)Overloaded.
Appends an element to a sequence.
(Defined by CollectionExtensions.)
Public Extension MethodAppendT(IEnumerableT)Overloaded. (Defined by EnumerableExtensions.)
Public Extension MethodAppendT(T)Overloaded. (Defined by EnumerableExtensions.)
Public Extension MethodCastCovariantT, TTo
Casts enumerable of TFrom to enumerable of TTo on platforms where covariance is not supported.
(Defined by ExtensionMethods.)
Public Extension MethodCloneT
Clones the list.
(Defined by CommonExtensions.)
Public Extension MethodContainsAnyT
Checks for the occurrence of the given items in the collection.
(Defined by CommonExtensions.)
Public Extension MethodEnsureListCountT
Ensures the list has exactly the amount of items specified.
(Defined by CommonExtensions.)
Public Extension MethodEnsureListCountAtLeastT
Ensures that the list contains at least the amount of specified items. If not, the given factory function will be used to add additional items till the expect count is reached.
(Defined by CommonExtensions.)
Public Extension MethodForEachT
Executes the action for each item in the collection.
(Defined by CommonExtensions.)
Public Extension MethodRemoveAllTOverloaded.
Removes all elements from the given collection.
(Defined by CollectionExtensions.)
Public Extension MethodRemoveAllT(PredicateT)Overloaded.
Removes all elements from a collection that match the condition defined by the specified predicate.
(Defined by CollectionExtensions.)
Public Extension MethodRemoveLastT
Removes the last item in the list.
(Defined by CommonExtensions.)
Public Extension MethodTakeAfterT
Bypasses elements from a sequence as long as a specified condition is true and then returns the remaining elements.
(Defined by CollectionExtensions.)
Public Extension MethodTakeBeforeT
Bypasses elements from a sequence until the specified condition becomes true.
(Defined by CollectionExtensions.)
Public Extension MethodTakeBetweenT(FuncT, Boolean, FuncT, Boolean)Overloaded.
Bypasses elements from a sequence as long as the first condition is false. Returns elements from the remaining elements as long the second condition is false.
(Defined by CollectionExtensions.)
Public Extension MethodTakeBetweenT(T, T)Overloaded.
Returns elements from a sequence as long as they are between the two items.
(Defined by CollectionExtensions.)
Public Extension MethodTakeFromT(FuncT, Boolean)Overloaded.
Bypasses elements from a sequence as long as a specified condition is false and then returns the element that satisfies the condition and the elements after.
(Defined by CollectionExtensions.)
Public Extension MethodTakeFromT(T)Overloaded.
Bypasses elements from a sequence as long as the element is not equal to the items in the sequence.
(Defined by CollectionExtensions.)
Public Extension MethodTakeToT(FuncT, Boolean)Overloaded.
Returns elements from a sequence as long as a specified condition is false. This method also returns the first element that satisfies the condition.
(Defined by CollectionExtensions.)
Public Extension MethodTakeToT(T)Overloaded.
Returns elements from a sequence as long as the sequence elements differs from the item.
(Defined by CollectionExtensions.)
Top
Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the collection.
Public propertyItem
Gets or sets the element at the specified index.
Protected propertyOwner
Gets the element holding the collection.
Top
See Also