[]
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.
public interface INames
Returns the number of objects in the collection (read-only).
int Count { get; }
Returns the IName object from a collection.
IName this[int index] { get; }
index intSpecifies the index of an element in the collection.
Returns the IName object from a collection.
IName this[string name] { get; }
name stringSpecifies the name of an element in the collection.
Defines a new name. Returns the IName object.
IName Add(string name, string refersTo)
name stringThe text to use as the name. Names cannot include spaces and cannot look like cell references.
refersTo stringRequired unless one of the other RefersTo arguments is specified. Describes what the name refers to (using A1-style notation).
Clears the IName collection.
void Clear()
Determines whether name is contained in INames.
bool Contains(string name)
name stringThe name.
Whether iNames contains the name.
Generates a collection of defined name from the JSON string.
void FromJson(string json)
json stringThe JSON string that contains defined names.
Generates the JSON string from the defined names.
string ToJson()
The JSON string.