[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISparklineGroup.ToJson

ToJson Method

ToJson()

Generates a JSON string from the sparkline group.

Use this method to serialize the current sparkline group definition so that it can be reused with FromJson(string) or stored for later use.

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

The JSON string representing the sparkline group.

Examples
worksheet.Range["A1:C1"].Value = new object[] {1, 3, 2};
ISparklineGroup group = worksheet.Range["D1"].SparklineGroups.Add(SparkType.Line, "A1:C1");
string json = group.ToJson();