[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IName.ToJson

ToJson Method

ToJson()

Generates the JSON string from the defined name.

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

The JSON string.

Examples
worksheet.Range["A1:A3"].Value = new object[,] { { 100 }, { 200 }, { 300 } };
IName definedName = worksheet.Names.Add("SalesTotal", "=A1:A3");
string json = definedName.ToJson();