[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.INames

Interface INames

Namespace
GrapeCity.Documents.Excel
Assembly
GcDocs.Excel.dll

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

Properties

Count

Returns the number of objects in the collection (read-only).

int Count { get; }

Property Value

int

this[int]

Returns the IName object from a collection.

IName this[int index] { get; }

Parameters

index int

Specifies the index of an element in the collection.

Property Value

IName

Returns IName

this[string]

Returns the IName object from a collection.

IName this[string name] { get; }

Parameters

name string

Specifies the name of an element in the collection.

Property Value

IName

Returns IName.

Methods

Add(string, string)

Defines a new name. Returns the IName object.

IName Add(string name, string refersTo)

Parameters

name string

The text to use as the name. Names cannot include spaces and cannot look like cell references.

refersTo string

Required unless one of the other RefersTo arguments is specified. Describes what the name refers to (using A1-style notation).

Returns

IName

Returns a new IName object.

Clear()

Clears the IName collection.

void Clear()

Contains(string)

Determines whether name is contained in INames.

bool Contains(string name)

Parameters

name string

The name.

Returns

bool

Whether iNames contains the name.

FromJson(string)

Generates a collection of defined name from the JSON string.

void FromJson(string json)

Parameters

json string

The JSON string that contains defined names.

ToJson()

Generates the JSON string from the defined names.

string ToJson()

Returns

string

The JSON string.