跳到主要内容

GetCurrentWord

返回当前单词。

语法​

expression.GetCurrentWord(type);

expression - 表示 Api 类的变量。

参数​

名称必需/可选数据类型默认值描述
type可选TextPartType"entirely"指定是返回整个单词还是仅返回其部分。

返回值​

string

示例​

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