Function TWPObjectEnv.InsertClass(ClassName:string; w:Integer; h:Integer; Mode:TWPTextObjPairMode; Par:TParagraph; posinpar:Integer) : TWPTextObj

Unit: WPRTEDefs
Class: WPRTEDefs.TWPObjectEnv

Parameters

Returns

The type of the result value is TWPTextObj.

Description

Create an object of a certain registered TWPObject class and insert it with the given width/height (or -1). The reference which is using this object is returned.
Upgrade note: This function returned the created object class in previos versions, it now returns a TWPTextObj reference object. Use TWPTextObj.WPObject to get a reference to the created object itself