Function TWPCustomRtfEdit.CodeSelect(AName:string; Code:TWPTextObjType; OnlyText:Boolean; StopAtParEnd:Boolean; LocateOptions:TWPCodeLocateOptions) : Boolean

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

Returns

The type of the result value is Boolean.

Description

Selects the text within a certain object. If the optional parameter "OnlyText" is true only the text within the codes is selected. The option parameter StopAtParEnd controls wether the search for the end tag stops at the end of the paragraph or not (=default).

Upgrade note: In WPTools 4 the declaration was: function CodeSelect(const Name: string; Code: TTextObjCodes;OnlyText: Boolean):Boolean;