WPTools Manual



Search


(press enter to search)

Function TParagraph.InsertNewObjectPair(Index:Integer; ObjType:TWPTextObjType; TextWithin:WideString; newposinpar:Integer; CharAttrIndex:Cardinal) : TWPTextObj

Unit: WPRTEDefs
Class: WPRTEDefs.TParagraph

Parameters

  • Index:Integer
  • ObjType:TWPTextObjType
  • TextWithin:WideString
  • newposinpar:Integer
  • CharAttrIndex:Cardinal

Returns

The type of the result value is TWPTextObj.

Description

This function inserts a new TWPTextObj. This is very practical to create merge fields or hyperlinks at a certain position in the paragraph