Table of Contents

Method ScreenToDisplay

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

ScreenToDisplay(double, double)

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

public virtual Point ScreenToDisplay(double x, double y)

Parameters

x double

Horizontal screen coordinate to convert.

y double

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

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

Parameters

x double
y double
checkBeyondEof bool

Returns

Point