Class ExcelVBACollectionBase<T>
Base class for VBA collections
Inheritance
ExcelVBACollectionBase<T>
Inherited Members
Namespace: OfficeOpenXml.VBA
Assembly: EPPlus.dll
Syntax
public class ExcelVBACollectionBase<T> : IEnumerable<T>, IEnumerable where T : IExcelVBACollectionElement
Type Parameters
| Name | Description |
|---|---|
| T |
Fields
_list
A list of vba objects
Declaration
protected List<T> _list
Field Value
| Type | Description |
|---|---|
| List<T> |
Properties
Count
Number of items in the collection
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Indexer
Declaration
public T this[int Index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | Index | Position |
Property Value
| Type | Description |
|---|---|
| T |
this[string]
Indexer
Declaration
public T this[string Name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | Name | Name |
Property Value
| Type | Description |
|---|---|
| T |
Methods
Exists(string)
If a specific name exists in the collection
Declaration
public bool Exists(string Name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Name | The name |
Returns
| Type | Description |
|---|---|
| bool | True if the name exists |
GetEnumerator()
Gets the enumerator for the collection
Declaration
public IEnumerator<T> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<T> | The enumerator |
Remove(T)
Removes the item
Declaration
public void Remove(T Item)
Parameters
| Type | Name | Description |
|---|---|---|
| T | Item |
RemoveAt(int)
Removes the item at the specified index
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | THe index |