Method ScreenToDisplay
ScreenToDisplay(int, int)
When implemented by a class, converts given screen coordinates to display coordinates(index of line and character).
Point ScreenToDisplay(int x, int y)
Parameters
Returns
- Point
The Point representing display coordinate.
Remarks
Display coordinate represents point in Edit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.
ScreenToDisplay(int, int, bool)
When implemented by a class, converts given screen coordinates to display coordinates(index of line and character).
Point ScreenToDisplay(int x, int y, bool checkBeyoundEof)
Parameters
x
intHorizontal screen coordinate to convert.
y
intVertical screen coordinate to convert.
checkBeyoundEof
boolChecks if if y-coordinate is beyond the last text line and returns it in this case.
Returns
- Point
The Point representing display coordinate.
Remarks
Display coordinate represents point in Edit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.