Table of Contents

Method ScreenToDisplay

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

ScreenToDisplay(int, int)

Converts given screen coordinates to display coordinates (index of line and character).

public virtual 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 SyntaxEdit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.

ScreenToDisplay(int, int, bool)

Converts given screen coordinates to display coordinates (index of line and character).

public virtual Point ScreenToDisplay(int x, int y, bool checkBeyondEof)

Parameters

x int

Horizontal screen coordinate to convert.

y int

Vertical screen coordinate to convert.

checkBeyondEof 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 SyntaxEdit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.