Class ExcelExternalNamedItemCollection<T>
A collection of cached defined names in an external workbook
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.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 |
---|---|---|
System.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 |
---|---|---|
System.String | name | The name. Case insensitive |
Returns
Type | Description |
---|---|
System.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 |
---|---|---|
System.String | name | The worksheet name |
Returns
Type | Description |
---|---|
System.Int32 | The index name if it exists. Otherwise -1 |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable