Table of Contents

Method ScreenToDisplayX

Namespace
Alternet.Editor
Assembly
Alternet.Editor.v10.dll

ScreenToDisplayX(int, int)

Converts given screen coordinates to display coordinate of a character.

public virtual int ScreenToDisplayX(int x, int line)

Parameters

x int

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

ScreenToDisplayX(double, int)

public virtual int ScreenToDisplayX(double x, int line)

Parameters

x double
line int

Returns

int