[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IComment.FromJson

FromJson Method

FromJson(string)

Generates the comment from the specified JSON string.

Use this method to apply serialized comment information to the current comment. The JSON content is typically generated by ToJson().

Declaration
void FromJson(string json)
Sub FromJson(json As String)
Parameters
Type Name Description
string json

The JSON string that contains comment information.

Examples
IComment sourceComment = worksheet.Range["A1"].AddComment("Review this value.");
sourceComment.Shape.Width = 220;
string json = sourceComment.ToJson();
IComment targetComment = worksheet.Range["C3"].AddComment("Draft");
targetComment.FromJson(json);