Skip to main content

Select

Selects the current content control.

Syntax​

expression.Select();

expression - A variable that represents an ApiInlineLvlSdt class.

Parameters​

This method doesn't have any parameters.

Returns​

boolean

Example​

Select an inline content control to bring it into focus in a document.

// How do I programmatically select an inline content control in a document?

// Highlight a content control so the cursor lands on it when navigating in a document.

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