public interface INames
IName objects in the workbook.
Each Name object represents a defined name for a range of cells. Names can be
either built-in names — such as Database, Print_Area, and Auto_Open — or
custom names.| Modifier and Type | Method and Description |
|---|---|
IName |
add(java.lang.String name,
java.lang.String refersTo)
Defines a new name.
|
void |
clear()
Clears the
IName collection. |
boolean |
contains(java.lang.String name)
Determines whether name is contained in
INames |
void |
fromJson(java.lang.String json)
Generates a collection of defined name from the json string.
|
IName |
get(int index)
Returns the
IName object from a collection. |
IName |
get(java.lang.String name)
Returns the
IName object from a collection. |
int |
getCount()
Returns the number of objects in the collection.
|
java.lang.String |
toJson()
Generates the json string from the defined names.
|
int getCount()
IName add(java.lang.String name, java.lang.String refersTo)
IName object.name - The text to use as the name. Names cannot include spaces and
cannot look like cell references.refersTo - Required unless one of the other RefersTo arguments is specified.
Describes what the name refers to (using A1-style notation).IName object.boolean contains(java.lang.String name)
INamesname - The name.IName get(java.lang.String name)
IName object from a collection.name - Specifies the name of an element in the collection.IName get(int index)
IName object from a collection.index - Specifies the index of an element in the collection.void clear()
IName collection.void fromJson(java.lang.String json)
json - the json string that contains defined namesjava.lang.String toJson()