ScreenToDisplay Method
ScreenToDisplay(Int32, Int32)
Converts given screen coordinates to display coordinates (index of line and character).
Declaration
public virtual Point ScreenToDisplay(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | Horizontal screen coordinate to convert. |
Int32 | y | Vertical screen coordinate to convert. |
Returns
Type | Description |
---|---|
Point | The Point representing display coordinate. |
Implements
Remarks
Display coordinate represents point in SyntaxEdit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.
ScreenToDisplay(Int32, Int32, Boolean)
Converts given screen coordinates to display coordinates (index of line and character).
Declaration
public virtual Point ScreenToDisplay(int x, int y, bool checkBeyondEof)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | Horizontal screen coordinate to convert. |
Int32 | y | Vertical screen coordinate to convert. |
Boolean | checkBeyondEof | Checks if if y-coordinate is beyond the last text line and returns it in this case. |
Returns
Type | Description |
---|---|
Point | The Point representing display coordinate. |
Implements
Remarks
Display coordinate represents point in SyntaxEdit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.