ScreenToText Method
ScreenToText(Point)
Converts given screen coordinates to text coordinates (index of line and character).
Declaration
public virtual Point ScreenToText(Point position)
Parameters
Type | Name | Description |
---|---|---|
Point | position | The screen coordinate Point to convert. |
Returns
Type | Description |
---|---|
Point | The Point representing text coordinate. |
Implements
ScreenToText(Int32, Int32, ref Boolean)
Converts given screen coordinates to text coordinates (index of line and character).
Declaration
public virtual Point ScreenToText(int x, int y, ref bool lineEnd)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | Horizontal screen coordinate to convert. |
Int32 | y | Vertical screen coordinate to convert. |
Boolean | lineEnd | Receives boolean value indicating if the caret is at the line end of the wrapped line. |
Returns
Type | Description |
---|---|
Point | The Point representing text coordinate. |
Implements
ScreenToText(Int32, Int32)
Converts given screen coordinates to text coordinates (index of line and character).
Declaration
public virtual Point ScreenToText(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 text coordinate. |