WPTools Manual



Search


(press enter to search)

Function TWPCustomRtfEdit.OpenCodes(par:TParagraph; posinpar:Integer; list:TWPTextObjList; CheckedCodes:TWPTextObjTypes; MaxCount:Integer) : TWPTextObj

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

Returns

The type of the result value is TWPTextObj.

Description

The function OpenCodes fills a list with references to TTextObj instances which are used embedded codes. It returns the first code which was found. The following codes are possible:
wpobjCustom - can be anything - use 'is' operator
wpobjMergeField,
wpobjHyperlink,
wpobjBookmark,
wpobjTextProtection - Text cannot be edited within
wpobjSPANStyle - Special texts styles
wpobjCode - Custom Codes
The following object types are usually used sigular and should not be used with 'OpenCodes'. wpobjTextObject,wpobjPageSize,wpobjPageProps,wpobjFootnote,wpobjImage.
Upgrade note: In WPTools 4 the declaration was: function OpenCodes(par: PTParagraph; lin: PTLine; pos: Integer; List: TList; Code: TTextObjCodes): Integer; The references it collected were integers (tag), not object references.

Overloaded Methods

Function TWPCustomRtfEdit.OpenCodes(X:Integer; Y:Integer; list:TWPTextObjList; CheckedCodes:TWPTextObjTypes; MaxCount:Integer) : TWPTextObj