Function TWPTextObj.CreateCopy(ForParentParagraph:TParagraph) : TWPTextObj

Unit: WPRTEDefs
Class: WPRTEDefs.TWPTextObj

Parameters

Returns

The type of the result value is TWPTextObj.

Description

Create a Copy of this object (same name, Tag, reference etc).
It can also create copies of objects which inherit from TWPTextObj. Since the newly created object is not owned by any RTFDataCollection the atatched TWPObject (if any) and the TWPTextStyle cannot be copied. They need to be assigned later, after the object has been inserted to a TParagraph.

Overloaded Methods

Function TWPTextObj.CreateCopy : TWPTextObj