Package com.grapecity.documents.excel
Interface INames
public interface INames
Represents a collection of all the
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.-
Method Summary
Modifier and TypeMethodDescriptionDefines a new name.voidclear()Clears theINamecollection.booleanDetermines whether name is contained inINamesvoidGenerates a collection of defined name from the json string.get(int index) Returns theINameobject from a collection.Returns theINameobject from a collection.intgetCount()Returns the number of objects in the collection.toJson()Generates the json string from the defined names.
-
Method Details
-
getCount
int getCount()Returns the number of objects in the collection. -
add
Defines a new name. Returns theINameobject.- Parameters:
name- The text to use as the name. Names cannot include spaces andcannot 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).- Returns:
- Returns a new
INameobject.
-
contains
Determines whether name is contained inINames- Parameters:
name- The name.- Returns:
- Whether iNames contains the name.
-
get
Returns theINameobject from a collection.- Parameters:
name- Specifies the name of an element in the collection.
-
get
Returns theINameobject from a collection.- Parameters:
index- Specifies the index of an element in the collection.
-
clear
void clear()Clears theINamecollection. -
fromJson
Generates a collection of defined name from the json string.- Parameters:
json- the json string that contains defined names
-
toJson
String toJson()Generates the json string from the defined names.- Returns:
- the json string
-