GetQuoteText

GetQuoteText() → { Number }

Returns the quote text of the current comment.

Parameters:

This method doesn't have any parameters.

Returns:

Type
Number

Example

Copy code
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 sQuoteText = aComments[0].GetQuoteText();
oParagraph = Api.CreateParagraph();
oParagraph.AddText("Comment quote text: " + sQuoteText);
oDocument.Push(oParagraph);
builder.SaveFile("docx", "GetQuoteText.docx");
builder.CloseFile();

Resulting document