Show / Hide Table of Contents

Class ExcelVBACollectionBase<T>

Base class for VBA collections

Inheritance
System.Object
ExcelVBACollectionBase<T>
ExcelVbaModuleAttributesCollection
ExcelVbaModuleCollection
ExcelVbaReferenceCollection
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.VBA
Assembly: EPPlus.dll
Syntax
public class ExcelVBACollectionBase<T> : IEnumerable<T>, IEnumerable
Type Parameters
Name Description
T

Fields

_list

A list of vba objects

Declaration
protected List<T> _list
Field Value
Type Description
System.Collections.Generic.List<T>

Properties

Count

Number of items in the collection

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32

Item[Int32]

Indexer

Declaration
public T this[int Index] { get; }
Parameters
Type Name Description
System.Int32 Index

Position

Property Value
Type Description
T

Item[String]

Indexer

Declaration
public T this[string Name] { get; }
Parameters
Type Name Description
System.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
System.String Name

The name

Returns
Type Description
System.Boolean

True if the name exists

GetEnumerator()

Gets the enumerator for the collection

Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<T>

The enumerator

Remove(T)

Removes the item

Declaration
public void Remove(T Item)
Parameters
Type Name Description
T Item

RemoveAt(Int32)

Removes the item at the specified index

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
System.Int32 index

THe index

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Back to top Generated by DocFX