Class ExcelExternalNamedItemCollection<T>
A collection of cached defined names in an external workbook
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.ExternalReferences
Assembly: EPPlus.dll
Syntax
public class ExcelExternalNamedItemCollection<T> : EPPlusReadOnlyList<T>, IEnumerable<T>, IEnumerable where T : IExcelExternalNamedItem
Type Parameters
| Name | Description |
|---|---|
| T |
Properties
Item[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 |
|---|---|
| Boolean | 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 |
|---|---|
| Int32 | The index name if it exists. Otherwise -1 |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable