Show / Hide Table of Contents

Class ExcelVBACollectionBase<T>

Base class for VBA collections

Inheritance
object
ExcelVBACollectionBase<T>
ExcelVbaModuleAttributesCollection
ExcelVbaModuleCollection
ExcelVbaReferenceCollection
Implements
IEnumerable<T>
IEnumerable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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

Implements

IEnumerable<T>
IEnumerable
In this article
Back to top Generated by DocFX