Method ScreenToDisplayX
ScreenToDisplayX(double, int)
Converts given screen coordinates to display coordinate of a character.
public int ScreenToDisplayX(double x, int line)
Parameters
x
doubleHorizontal screen coordinate to convert.
line
intVertical display coordinate of a text line.
Returns
- int
The integer representing display coordinate.
Remarks
Display coordinate represents point in Edit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.