Table of Contents

Method ScreenToDisplayX

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

ScreenToDisplayX(double, int)

Converts given screen coordinates to display coordinate of a character.

public int ScreenToDisplayX(double x, int line)

Parameters

x double

Horizontal screen coordinate to convert.

line int

Vertical display coordinate of a text line.

Returns

int

The integer representing display coordinate.

Remarks

Display coordinate represents point in Edit control, it may be different from text coordinate due to tabulations, wordwrap and outlining.