## CollectionBase&lt;T&gt; class

Provides the abstract base class for a strongly typed collection.

```csharp
public abstract class CollectionBase<T> : ICollection, IList<T>
```

## Properties

| Name | Description |
| --- | --- |
| [Capacity](../../aspose.cells/collectionbase-1/capacity/) { get; set; } | Gets or sets the number of elements that the list can contain. |
| [Count](../../aspose.cells/collectionbase-1/count/) { get; } | Gets the number of elements. |
| [Item](../../aspose.cells/collectionbase-1/item/) { get; set; } | Gets or sets the element at the specified index. |

## Methods

| Name | Description |
| --- | --- |
| [BinarySearch](../../aspose.cells/collectionbase-1/binarysearch/#binarysearch_1)(T) |  |
| [BinarySearch](../../aspose.cells/collectionbase-1/binarysearch/#binarysearch_2)(T, IComparer&lt;T&gt;) |  |
| [BinarySearch](../../aspose.cells/collectionbase-1/binarysearch/#binarysearch)(int, int, T, IComparer&lt;T&gt;) |  |
| [Clear](../../aspose.cells/collectionbase-1/clear/)() | Remove all elements. |
| [Contains](../../aspose.cells/collectionbase-1/contains/)(T) |  |
| [CopyTo](../../aspose.cells/collectionbase-1/copyto/#copyto_1)(T[]) |  |
| [CopyTo](../../aspose.cells/collectionbase-1/copyto/#copyto_2)(T[], int) |  |
| [CopyTo](../../aspose.cells/collectionbase-1/copyto/#copyto)(int, T[], int, int) |  |
| [Exists](../../aspose.cells/collectionbase-1/exists/)(Predicate&lt;T&gt;) |  |
| [Find](../../aspose.cells/collectionbase-1/find/)(Predicate&lt;T&gt;) |  |
| [FindAll](../../aspose.cells/collectionbase-1/findall/)(Predicate&lt;T&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase-1/findindex/#findindex_2)(Predicate&lt;T&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase-1/findindex/#findindex_1)(int, Predicate&lt;T&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase-1/findindex/#findindex)(int, int, Predicate&lt;T&gt;) |  |
| [FindLast](../../aspose.cells/collectionbase-1/findlast/)(Predicate&lt;T&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase-1/findlastindex/#findlastindex_2)(Predicate&lt;T&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase-1/findlastindex/#findlastindex_1)(int, Predicate&lt;T&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase-1/findlastindex/#findlastindex)(int, int, Predicate&lt;T&gt;) |  |
| [GetEnumerator](../../aspose.cells/collectionbase-1/getenumerator/)() |  |
| [IndexOf](../../aspose.cells/collectionbase-1/indexof/#indexof)(T) |  |
| [IndexOf](../../aspose.cells/collectionbase-1/indexof/#indexof_1)(T, int) |  |
| [IndexOf](../../aspose.cells/collectionbase-1/indexof/#indexof_2)(T, int, int) |  |
| [LastIndexOf](../../aspose.cells/collectionbase-1/lastindexof/#lastindexof)(T) |  |
| [LastIndexOf](../../aspose.cells/collectionbase-1/lastindexof/#lastindexof_1)(T, int) |  |
| [LastIndexOf](../../aspose.cells/collectionbase-1/lastindexof/#lastindexof_2)(T, int, int) |  |
| [RemoveAt](../../aspose.cells/collectionbase-1/removeat/)(int) | Removes the element at the specified index. |

### See Also

* namespace [Aspose.Cells](../../aspose.cells/)
* assembly [Aspose.Cells](../../)


