Skip to main content

Select

Selects the current content control.

Syntax

expression.Select();

expression - A variable that represents a ApiBlockLvlSdt class.

Parameters

This method doesn't have any parameters.

Returns

boolean

Example

This example selects the content control.

// Creates a block content control and selects it.

// How to select the ApiBlockLvlSdt object in the current document.

let doc = Api.GetDocument();
let blockLvlSdt = Api.CreateBlockLvlSdt();
blockLvlSdt.GetContent().GetElement(0).AddText("The block text content control is selected.");
doc.AddElement(0, blockLvlSdt);
blockLvlSdt.Select();