[]
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().
void FromJson(string json)
Sub FromJson(json As String)
| Type | Name | Description |
|---|---|---|
| string | json | The JSON string that contains comment information. |
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);