[]
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.
string ToJson()
Function ToJson() As String
| Type | Description |
|---|---|
| string | The JSON string that represents the shape. |
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 60);
shape.Name = "SalesBox";
string json = shape.ToJson();