Function TWPTextObj.GetContainedObject(OfTypes:TWPTextObjTypes) : TWPTextObj

Unit: WPRTEDefs
Class: WPRTEDefs.TWPTextObj

Parameters

Returns

The type of the result value is TWPTextObj.

Description

The function GetContainedObject returns the first object inside of a pair of text objects which has a type includes in the provided set. It can be used to locate an image inside of a field or hyperlink.