Function TParagraph.OpenObjectAt(posinpar:Integer; ObjType:TWPTextObjType) : TWPTextObj

Unit: WPRTEDefs
Class: WPRTEDefs.TParagraph

Parameters

Returns

The type of the result value is TWPTextObj.

Description

This functions seraches backwards from the given position and returns the first open object of the specified type. This is useful to quickly fild merge and hyperlink objects. The method stops at the start of the paragraph.