Skip to content

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

object ← ExcelVBACollectionBase<T>

Implements

IEnumerable
IEnumerable<T>

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

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[string]

Indexer

public T this[string Name] { get; }

Property Value

T

this[int]

Indexer

public T this[int Index] { get; }

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