Skip to main content

RichEditSelection.setTextBoxSubDocumentAsActive(arg) Method

Makes the specified text box active.

#Declaration

TypeScript
setTextBoxSubDocumentAsActive(
    arg: number | FloatingTextBoxInfo
): void

#Parameters

Name Type Description
arg number | FloatingTextBoxInfo

An integer value that identifies the target text box by its id, or an object that contains the text box settings.

#Remarks

You can use one of the following API members to get a FloatingTextBoxInfo object:

var textBoxes = richEdit.document.activeSubDocument.floatingTextBoxesInfo;
richEdit.selection.setTextBoxSubDocumentAsActive(textBoxes[0]);

Refer to the following section for more information: Client Selection.

See Also