Skip to content

Class ExcelExternalNamedItemCollection<T>

Namespace: OfficeOpenXml.ExternalReferences
Assembly: EPPlus.dll

A collection of cached defined names in an external workbook

public class ExcelExternalNamedItemCollection<T> : EPPlusReadOnlyList<T>, IEnumerable<T>, IEnumerable where T : IExcelExternalNamedItem

Type Parameters

T

Inheritance

object ← EPPlusReadOnlyList<T> ← ExcelExternalNamedItemCollection<T>

Implements

IEnumerable
IEnumerable<T>

Inherited Members

EPPlusReadOnlyList<T>.Count
EPPlusReadOnlyList<T>.GetIndexByValue(T)
EPPlusReadOnlyList<T>.this[int]
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Constructors

ExcelExternalNamedItemCollection()

public ExcelExternalNamedItemCollection()

Properties

this[string]

Indexer for the collection

public T this[string name] { get; }

Property Value

T

Methods

ContainsKey(string)

If the name exists in the collection

public bool ContainsKey(string name)

Parameters

name string

The name. Case insensitive

Returns

bool

true if the name exists in the collection, otherwise false

GetIndexByName(string)

Returns the index if the worksheet with the supplied name

public int GetIndexByName(string name)

Parameters

name string

The worksheet name

Returns

int

The index name if it exists. Otherwise -1