ScreenToDisplayX Method
ScreenToDisplayX(Double, Int32)
Converts given screen coordinates to display coordinate of a character.
Declaration
public int ScreenToDisplayX(double x, int line)
Parameters
Type | Name | Description |
---|---|---|
Double | x | Horizontal screen coordinate to convert. |
Int32 | line | Vertical display coordinate of a text line. |
Returns
Type | Description |
---|---|
Int32 | The integer representing display coordinate. |
Remarks
Display coordinate represents point in Edit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.