Returns the comment text.
This method doesn't have any parameters.
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph = oDocument.GetElement(0); oParagraph.AddText("This is just a sample text"); Api.AddComment(oParagraph, "comment", "John Smith"); var aComments = oDocument.GetAllComments(); var sText = aComments[0].GetText(); oParagraph = Api.CreateParagraph(); oParagraph.AddText("Comment text: " + sText); oDocument.Push(oParagraph); builder.SaveFile("docx", "GetText.docx"); builder.CloseFile();