Adds a comment to the current inline content control.
Name | Type | Description |
sText | string | The comment text (required). |
sAuthor | string | The author's name (optional). |
sUserId | string | The user ID of the comment author (optional). |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph = oDocument.GetElement(0); var oInlineLvlSdt = Api.CreateInlineLvlSdt(); oInlineLvlSdt.AddText("This is an inline text content control."); oParagraph.AddInlineLvlSdt(oInlineLvlSdt); oInlineLvlSdt.AddComment("comment", "John Smith", "uid-1"); builder.SaveFile("docx", "AddComment.docx"); builder.CloseFile();