ScreenToDisplay Method
ScreenToDisplay(Double, Double)
Converts given screen coordinates to display coordinates (index of line and character).
Declaration
public virtual Point ScreenToDisplay(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
Double | x | Horizontal screen coordinate to convert. |
Double | y | Vertical screen coordinate to convert. |
Returns
Type | Description |
---|---|
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(Double, Double, Boolean)
Declaration
public virtual Point ScreenToDisplay(double x, double y, bool checkBeyondEof)
Parameters
Type | Name | Description |
---|---|---|
Double | x | |
Double | y | |
Boolean | checkBeyondEof |
Returns
Type | Description |
---|---|
Point |