GetRTFPositionAtXY method

Applies to
TWPRTFEnginePaint

Declaration
function GetRTFPositionAtXY(PaintPageNr: Integer; X, Y: Integer; var aRTFData: TWPRTFDataBlock; var par: TParagraph; var pos_in_par: Integer; var FrameBorder: TWPFrameBorder; var TextObject: TWPTextObj; var SizerElement: TWPPaintSizerRects; XYAsTwips: Boolean = TRUE; Modes: TWPRTFPositionAtXYModes = []): Boolean;

Description
This function searches on a certain virtual page for text under the position x,y (measured in Twips or in the device resolution of the reference device if XYAsTwips=false) and relative to top/left of the page ) X and Y must be an offset value to the start of the page! It also assigns the RTFData object which hosts the found paragraph. It can be a header, footer or footnote buffer!


Copyright (C) by WPCUBED GmbH - Munich
http://www.wpcubed.com