跳到主要内容

Select

选择当前内容控件。

语法

expression.Select();

expression - 表示 ApiInlineLvlSdt 类的变量。

参数

此方法没有任何参数。

返回值

boolean

示例

在文档中创建内联内容控件并选择它。

// How do I select in a document?

// Select using an inline content control object in a document.

let doc = Api.GetDocument();
let checkbox = doc.AddCheckBoxContentControl();
checkbox.Select();