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
-
ExcelExternalNamedItemCollection<T>
- Implements
-
IEnumerable<T>
- Inherited Members
Constructors
ExcelExternalNamedItemCollection()
public ExcelExternalNamedItemCollection()
Properties
this[string]
Indexer for the collection
public T this[string name] { get; }
Parameters
name
stringThe name if the defined name
Property Value
- T
Methods
ContainsKey(string)
If the name exists in the collection
public bool ContainsKey(string name)
Parameters
name
stringThe 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
stringThe worksheet name
Returns
- int
The index name if it exists. Otherwise -1