Method ScreenToDisplay
ScreenToDisplay(int, int)
Converts given screen coordinates to display coordinates (index of line and character).
public virtual Point ScreenToDisplay(int x, int y)
Parameters
Returns
- Point
The Point representing display coordinate.
Remarks
Display coordinate represents point in SyntaxEdit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.
ScreenToDisplay(int, int, bool)
Converts given screen coordinates to display coordinates (index of line and character).
public virtual Point ScreenToDisplay(int x, int y, bool checkBeyondEof)
Parameters
x
intHorizontal screen coordinate to convert.
y
intVertical screen coordinate to convert.
checkBeyondEof
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 SyntaxEdit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.