GetCurrentWord
Returns the current word.
Syntax
expression.GetCurrentWord(type);
expression
- A variable that represents a Api class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
type | Optional | TextPartType | "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)
});