Table of Contents

Method ScreenToDisplay

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

ScreenToDisplay(int, int)

When implemented by a class, converts given screen coordinates to display coordinates(index of line and character).

Point ScreenToDisplay(int x, int y)

Parameters

x int

Horizontal screen coordinate to convert.

y int

Vertical screen coordinate to convert.

Returns

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(int, int, bool)

When implemented by a class, converts given screen coordinates to display coordinates(index of line and character).

Point ScreenToDisplay(int x, int y, bool checkBeyoundEof)

Parameters

x int

Horizontal screen coordinate to convert.

y int

Vertical screen coordinate to convert.

checkBeyoundEof bool

Checks if if y-coordinate is beyond the last text line and returns it in this case.

Returns

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.