[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.INames.FromJson

FromJson Method

FromJson(string)

Generates a collection of defined name from the JSON string.

Use this method to import defined names into the collection from JSON data, such as data previously generated by ToJson().

Declaration
void FromJson(string json)
Sub FromJson(json As String)
Parameters
Type Name Description
string json

The JSON string that contains defined names.

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