TextFrameSelect

Description

Selects a text frame for further programming. Note that this function does not set the input focus to a text frame and does not show the selection frame with the resize handles.

Applies to

RichTextEdit control

Syntax

boolean rtename.TextFrameSelect(integer textFrameID)

Argument

Description

textFrameID

The unique ID that identifies the text frame. It must be an identifier returned through the TextFrameInsert, TextFrameInsertAsChar or TextFrameInsertFixed method.

If the argument is 0 (the default value), the text part with the current input position will be selected.

If the argument is -1, the main text will be selected, independent of which text part has the current input focus.

Return value

Boolean.

Returns true if it succeeds and returns false if it fails. Returns null if any argument is null.

Examples

The following example selects the selected text frame (no change in the UI).

boolean lb_rtn
integer li_frameid

li_frameid = rte_1.TextFrameInsertAsChar(-1,5000,1000)
lb_rtn = rte_1.TextFrameSelect(li_frameid)