Table of Contents

Method ScreenToText

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

ScreenToText(Point)

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

public virtual Point ScreenToText(Point position)

Parameters

position Point

The screen coordinate Point to convert.

Returns

Point

The Point representing text coordinate.

ScreenToText(int, int, ref bool)

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

public virtual Point ScreenToText(int x, int y, ref bool lineEnd)

Parameters

x int

Horizontal screen coordinate to convert.

y int

Vertical screen coordinate to convert.

lineEnd bool

Receives boolean value indicating if the caret is at the line end of the wrapped line.

Returns

Point

The Point representing text coordinate.

ScreenToText(int, int)

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

public virtual Point ScreenToText(int x, int y)

Parameters

x int

Horizontal screen coordinate to convert.

y int

Vertical screen coordinate to convert.

Returns

Point

The Point representing text coordinate.