[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.CollectionBase-1

CollectionBase<T> Class

Represents a CollectionBase class, which is a base class.

Namespace: GrapeCity.Win.Spread.InputMan.CellType
Assembly: GrapeCity.Win.PluginInputMan.dll
Syntax
[ListBindable(false)]
public class CollectionBase<T> : CollectionBase, IList, ICollection, IEnumerable
<ListBindable(False)>
Public Class CollectionBase(Of T)
    Inherits CollectionBase
    Implements IList, ICollection, IEnumerable
Type Parameters
Name Description
T

Constructors

Name Description
CollectionBase()

Initializes a new instance of the CollectionBase<T> class.

CollectionBase(CollectionBase<T>)

Initializes a new instance of the CollectionEx class containing the elements of the specified source collection.

CollectionBase(T[])

Initializes a new instance of the CollectionEx class containing the specified array of T objects.

Properties

Name Description
this[int]

Gets or sets the T at the specified index in the collection.

Methods

Name Description
Add(T)

Adds the specified T to the collection.

AddRange(CollectionBase<T>)

Adds the contents of another CollectionEx to the end of the collection.

AddRange(IList<T>)

Adds the contents of another IList to the end of the collection.

AddRange(T[])

Copies the elements of the specified array to the end of the collection.

Contains(T)

Gets a value that indicates whether the collection contains the specified T.

CopyTo(T[], int)

Copies the collection objects to a one-dimensional Array instance beginning at the specified index.

DefaultPredicate<TTarget>(TTarget)

Represents a default predicate.

Exists<TTarget>()

Determines whether the List<T> contains elements that match the conditions defined by the specified predicate.

Exists<TTarget>(Predicate<TTarget>)

Determines whether the List<T> contains elements that match the conditions defined by the specified predicate.

FindAll<TTarget>()

Retrieves all the T that match the specified type TTarget.

FindAll<TTarget>(Predicate<TTarget>)

Retrieves all the T that match the specified type TTarget and match the conditions defined by the specified predicate.

FindIndex<TTarget>()

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire List<T>.

FindIndex<TTarget>(int, int, Predicate<TTarget>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the List<T> that starts at the specified index and contains the specified number of elements.

FindIndex<TTarget>(int, Predicate<TTarget>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the List<T> that extends from the specified index to the last element.

FindIndex<TTarget>(Predicate<TTarget>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire List<T>.

FindLastIndex<TTarget>()

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire List<T>.

FindLastIndex<TTarget>(int, int, Predicate<TTarget>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the List<T> that contains the specified number of elements and ends at the specified index.

FindLastIndex<TTarget>(int, Predicate<TTarget>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the List<T> that extends from the first element to the specified index.

FindLastIndex<TTarget>(Predicate<TTarget>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire List<T>.

FindLast<TTarget>()

Searches for an T that matches the specified type TTarget and matches the conditions defined by the specified predicate, and returns the last occurrence within the entire collection.

FindLast<TTarget>(Predicate<TTarget>)

Searches for an T that matches the specified type TTarget and matches the conditions defined by the specified predicate, and returns the last occurrence within the entire collection.

Find<TTarget>()

Searches for a T that matches the specified type TTarget, and returns the first occurrence within the entire collection.

Find<TTarget>(Predicate<TTarget>)

Searches for a T that matches the specified type TTarget and matches the conditions defined by the specified predicate, and returns the first occurrence within the entire collection.

IndexOf(T)

Gets the index in the collection of the specified T, if it exists in the collection.

InnerAddRange(object[])

Copies the elements of the specified array to the end of the collection.

Insert(int, T)

Inserts the specified T into the collection at the specified index.

OnAddRange(object[])

Performs additional custom processes before inserting a new element array into the CollectionBase instance.

OnAddRangeComplete(object[])

Performs additional custom processes after inserting a new element array into the CollectionBase instance.

OnClear()

Performs additional custom processes when clearing the contents of the CollectionBase instance.

OnClearComplete()

Performs additional custom processes after clearing the contents of the CollectionBase instance.

OnCollectionChanged(CollectionChangeEventArgs)

Raises the CollectionChanged event.

OnCollectionChanging(CollectionChangeEventArgs)

Raises the CollectionChanging event.

OnInsert(int, object)

Performs additional custom processes before inserting a new element into the CollectionBase instance.

OnInsertComplete(int, object)

Performs additional custom processes after inserting a new element into the CollectionBase instance.

OnRemove(int, object)

Performs additional custom processes when removing an element from the CollectionBase instance.

OnRemoveComplete(int, object)

Performs additional custom processes after removing an element from the CollectionBase instance.

OnSet(int, object, object)

Performs additional custom processes before setting a value in the CollectionBase instance.

OnSetComplete(int, object, object)

Performs additional custom processes after setting a value in the CollectionBase instance.

OnValidate(object)

Performs additional custom processes when validating a value.

Remove(T)

Removes the specified T from the collection.

Events

Name Description
CollectionChanged

A CollectionChangeEventHandler object that indicates the handler of the CollectionChanged event.

CollectionChanging

A CollectionChangeEventHandler object that indicates the handler of CollectionChanging event.