Function TWPObjectEnv.InsertTextBox(w:Integer; h:Integer; RTFData:TWPRTFDataBlock; par:TParagraph) : TWPTextObj

Unit: WPRTEDefs
Class: WPRTEDefs.TWPObjectEnv

Parameters

Returns

The type of the result value is TWPTextObj.

Description

This function is inly available in WPTools PREMIUM to create a text box. It will also create an empty TWPRTFDataBlock for it and set the reference in the variable RTFData if provided. This makes it easy to create text in the datablock, for example using RTFData.RTFText.AsString:='some text';
Since WPTools 7 it is also possible to specify the paragraph where the text object anchor should be created

Overloaded Methods

Function TWPObjectEnv.InsertTextBox(w:Integer; h:Integer; par:TParagraph) : TWPTextObj