Class ExcelExternalNamedItemCollection<T>
A collection of cached defined names in an external workbook
Inherited Members
Namespace: OfficeOpenXml.ExternalReferences
Assembly: EPPlus.dll
Syntax
public class ExcelExternalNamedItemCollection<T> : EPPlusReadOnlyList<T>, IEnumerable<T>, IEnumerable where T : IExcelExternalNamedItem
Type Parameters
| Name | Description |
|---|---|
| T |
Properties
this[string]
Indexer for the collection
Declaration
public T this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name if the defined name |
Property Value
| Type | Description |
|---|---|
| T |
Methods
ContainsKey(string)
If the name exists in the collection
Declaration
public bool ContainsKey(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name. Case insensitive |
Returns
| Type | Description |
|---|---|
| bool | true if the name exists in the collection, otherwise false |
GetIndexByName(string)
Returns the index if the worksheet with the supplied name
Declaration
public int GetIndexByName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The worksheet name |
Returns
| Type | Description |
|---|---|
| int | The index name if it exists. Otherwise -1 |