Table of Contents

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
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

int

this[int]

Indexer

public T this[int Index] { get; }

Parameters

Index int

Position

Property Value

T

this[string]

Indexer

public T this[string Name] { get; }

Parameters

Name string

Name

Property Value

T

Methods

Exists(string)

If a specific name exists in the collection

public bool Exists(string Name)

Parameters

Name string

The 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

Item T

RemoveAt(int)

Removes the item at the specified index

public void RemoveAt(int index)

Parameters

index int

THe index