Skip to main content

GetCurrentWord

Returns the current word.

Syntax​

expression.GetCurrentWord(type);

expression - A variable that represents an Api class.

Parameters​

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

Returns​

string

Example​

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