Function TParagraph.LinePosFromX(lin:Integer; x:Integer; Found:Boolean) : Integer

Unit: WPRTEDefs
Class: WPRTEDefs.TParagraph

Parameters

  • lin:Integer
  • x:Integer
  • Found:Boolean

Returns

The type of the result value is Integer.

Description

Calculates the PosInPar which corresponds with the given X offset in the given line. This function only works if the text was formatted and is usually used to calculate the cursor position