跳到主要内容

获取当前内容控件

返回当前选中的内容控件的标识符(即鼠标光标当前所在的内容控件)。

语法

expression.GetCurrentContentControl();

expression - 表示 Api 类的变量。

参数

此方法没有参数。

返回值

string(字符串)

示例

document.getElementById ("buttonIDChangeState").onclick = function () {
var _Control = [];
window.buttonIDChangeState_click = true;
window.Asc.plugin.executeMethod("GetCurrentContentControl");
};