Class ExcelNamedRangeCollection¶
Namespace: OfficeOpenXml
Assembly: EPPlus.dll
Collection for named ranges
Inheritance¶
object ← ExcelNamedRangeCollection
Implements¶
IEnumerable
IEnumerable<ExcelNamedRange>
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
Count¶
The current number of items in the collection
Property Value¶
this[string]¶
Name indexer
Property Value¶
Remarks¶
Throws a KeyNotFoundException if the key is not in the collection.
this[int]¶
Indexer for the collection
Property Value¶
Methods¶
Add(string, ExcelRangeBase, bool)¶
Adds a new named range
Parameters¶
Name string
The name
Range ExcelRangeBase
The range
allowRelativeAddress bool
If true, the address will be retained as it is, if false the address will always be converted to an absolute/fixed address
Returns¶
Add(string, ExcelRangeBase)¶
Adds a new named range
Parameters¶
Name string
The name
Range ExcelRangeBase
The range
Returns¶
AddFormula(string, string)¶
Add a defined name referencing a formula
Parameters¶
Name string
Formula string
Returns¶
AddValue(string, object)¶
Add a defined name referencing value
Parameters¶
Name string
The name
value object
The value for the name
Returns¶
ContainsKey(string)¶
Checks collection for the presence of a key
Parameters¶
key string
key to search for
Returns¶
true if the key is in the collection
GetEnumerator()¶
Implement interface method IEnumerator<ExcelNamedRange> GetEnumerator()
Returns¶
Remove(string)¶
Remove a defined name from the collection
Parameters¶
Name string
The name