跳到主要内容

GetCurrentWord

Returns the current word.

Syntax

expression.GetCurrentWord(type);

expression - A variable that represents a 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)
});