Table of Contents

Method ScreenToDisplayX

Namespace
Alternet.Editor
Assembly
Alternet.Editor.v9.dll

ScreenToDisplayX(int, int)

When implemented by a class, converts given screen coordinates to display coordinate of a character.

int ScreenToDisplayX(int x, int line)

Parameters

x int

Horizontal screen coordinate to convert.

line int

Vertical display coordinate of a text line.

Returns

int

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.