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