Interacting with editorsText document APIMethodsGetCurrentSentence本页总览GetCurrentSentenceAsk a question 返回当前句子。 语法 expression.GetCurrentSentence(type); expression - 表示 Api 类的变量。 参数 名称必需/可选数据类型默认值描述type可选TextPartType"entirely"指定是返回整个句子还是仅返回其部分。 返回值 string 示例 window.Asc.plugin.executeMethod ("GetCurrentSentence", ["entirely"], function (res) { console.log (res)});