Function TWPObjectEnv.LocateInner(Par:TParagraph; posinpar:Integer; MatchTypes:TWPTextObjTypes; StartPar:TParagraph; EndPar:TParagraph; StartPosInPar:Integer; EndPosInPar:Integer) : TWPTextObj

Unit: WPRTEDefs
Class: WPRTEDefs.TWPObjectEnv

Parameters

Returns

The type of the result value is TWPTextObj.

Description

The functions locates the inner codes at the given position is located in. "Codes" are TWPTextObj which are used pairwise, such as wpobjHyperlink, wpobjMergeField, wpobjBookmark, wpobjTextProtection, wpobjCode, wpobjTextStyle.
Please note that TWPTextObj.Tag is used to match pairs!
Use LocateNext to locate the next level from the last found position