Function TWPRTFEngineEdit.GetPageAtXY(X:Integer; Y:Integer; marginarea:TWPMouseMarginArea; UseMargins:Boolean) : Integer

Unit: WPRTEEdit
Class: WPRTEEdit.TWPRTFEngineEdit

Parameters

Returns

The type of the result value is Integer.

Description

Gets the Page Index from the X,Y position which is measured in screen resolution. When the page is found the X and Y coordinates are updated to coordinates which are relative to the start of that page and measured in twips which makes them perfect input variables to GetRTFPositionAtXY. Please also see GetRTFPageAtXY().

Overloaded Methods

Function TWPRTFEngineEdit.GetPageAtXY(X:Integer; Y:Integer; FindNextPage:Boolean; UseMargins:Boolean) : Integer