Skip to main content

GetQuoteText

Returns the quote text of the current comment.

Syntax

expression.GetQuoteText();

expression - A variable that represents a ApiComment class.

Parameters

This method doesn't have any parameters.

Returns

String | null

Example

This example shoows how to get the quote text of the comment.

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: ");
oWorksheet.GetRange("B3").SetValue(oComment.GetQuoteText());