Function TWPCustomRtfEdit.CodeExistInText(Code:TWPTextObjType; GlobalSearch:Boolean; startpar:TParagraph) : Boolean

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

Returns

The type of the result value is Boolean.

Description

This function returns true if the text containes any special codes. It is optimized for speed to quickly check if fields or links exist in the document. Optionally a staring paragraph can be provided. If this is not nil, this paragraphs and all its siblings will be checked. GlobalSearch MUST be false in this case!