[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShape.ToJson

ToJson Method

ToJson()

Generates a JSON string from the shape.

The returned JSON can be used with FromJson(string) to create a shape from the serialized shape definition.

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

The JSON string that represents the shape.

Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 60);
shape.Name = "SalesBox";
string json = shape.ToJson();