Skip to main content

GetCurrentSentence

Returns the current sentence.

Syntax​

expression.GetCurrentSentence(type);

expression - A variable that represents a Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
typeOptionalTextPartType"entirely"Specifies if the whole sentence or only its part will be returned.

Returns​

string

Example​

window.Asc.plugin.executeMethod ("GetCurrentSentence", ["entirely"], function (res) {
console.log (res)
});