TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

GetQuoteText

GetQuoteText() → { String | null }

Returns the quote text of the current comment.

Parameters:

This method doesn't have any parameters.

Returns:

Type
String | null

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A1").SetValue("1");
var oRange = oWorksheet.GetRange("A1");
var oComment = oRange.AddComment("This is just a number.");
oWorksheet.GetRange("A3").SetValue("Comment's quote text: " + oComment.GetQuoteText());
builder.SaveFile("xlsx", "GetQuoteText.xlsx");
builder.CloseFile();

Resulting document