[]
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().
void FromJson(string json)
Sub FromJson(json As String)
| Type | Name | Description |
|---|---|---|
| string | json | The JSON string that contains defined names. |
INames names = workbook.Names;
names.Add("SalesRange", "=Sheet1!$A$1:$A$5");
string json = names.ToJson();
names.Clear();
names.FromJson(json);