[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.INames.ToJson

ToJson Method

ToJson()

Generates the JSON string from the defined names.

The returned string serializes the current collection of defined names and can be used with FromJson(string) to restore the collection later.

Declaration
string ToJson()
Function ToJson() As String
Returns
Type Description
string

The JSON string.

Examples
INames names = workbook.Names;
names.Add("SalesRange", "=Sheet1!$A$1:$A$5");
string json = names.ToJson();