Function TWPRTFEnginePaint.GetTextPageScreenRect(par:TParagraph; posinpar:Integer; x:Integer; y:Integer; w:Integer; h:Integer; pagenr:Integer) : TWPVirtPage

Unit: WPRTEPaint
Class: WPRTEPaint.TWPRTFEnginePaint

Parameters

  • par:TParagraph
  • posinpar:Integer
  • x:Integer
  • y:Integer
  • w:Integer
  • h:Integer
  • pagenr:Integer

Returns

The type of the result value is TWPVirtPage.

Description

This function calculates the rectangle of a certain page in screen ccordinates. It is used by the ruler to display the current page area. It returns a reference to the RTF-Page which can be useful to retieve the margin values which are effective for this page