Function TWPObjectEnv.NewWPObjectFromData(DontFreeData:Boolean; data:TPersistent; newobj:TWPObject; w:Integer; h:Integer) : Boolean

Unit: WPRTEDefs
Class: WPRTEDefs.TWPObjectEnv

Parameters

  • DontFreeData:Boolean
  • data:TPersistent
  • newobj:TWPObject
  • w:Integer
  • h:Integer

Returns

The type of the result value is Boolean.

Description

Internal function to create a new TWPObject from data. The create onbject is not owned by the RTFEngine. The function also copies the data and frees the data object if DontFreeData>TRUE.