Table of Contents

Method TextToScreen

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

TextToScreen(Point)

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

public virtual Point TextToScreen(Point position)

Parameters

position Point

The text coordinate Point to convert.

Returns

Point

The Point representing screen coordinate.

TextToScreen(int, int)

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

public virtual Point TextToScreen(int x, int y)

Parameters

x int

Horizontal text coordinate to convert.

y int

Vertical text coordinate to convert.

Returns

Point

The Point representing screen coordinate.

TextToScreen(Point, bool)

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

public virtual Point TextToScreen(Point position, bool lineEnd)

Parameters

position Point

Point coordinate to convert.

lineEnd bool

Boolean value indicating if the text position can be set to the end of the wrapped line.

Returns

Point

The Point representing screen coordinate.

TextToScreen(int, int, bool)

protected Point TextToScreen(int x, int y, bool lineEnd)

Parameters

x int
y int
lineEnd bool

Returns

Point