Function TWPRTFEnginePaint.ObjectWindowRect(TextObject:TWPTextObj; X:Integer; Y:Integer; W:Integer; H:Integer; CurrentPaintPageNr:Integer) : Boolean

Unit: WPRTEPaint
Class: WPRTEPaint.TWPRTFEnginePaint

Parameters

  • TextObject:TWPTextObj
  • X:Integer
  • Y:Integer
  • W:Integer
  • H:Integer
  • CurrentPaintPageNr:Integer

Returns

The type of the result value is Boolean.

Description

Calculates the position and size of a certain object in screen coordinates. If the object belongs to a header or footer text it is important that the correct page number is provided which is used as a basis. (Reason: the same object can be used for different pages!)