Table of Contents

Method DisplayPointToPoint

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

DisplayPointToPoint(int, int)

When implemented by a class, converts the specified display coordinates to text coordinates.

Point DisplayPointToPoint(int x, int y)

Parameters

x int

The X-constituent of the Point value that specifies the display coordinates to be converted.

y int

The Y-constituent of the Point value that specifies the display coordinates to be converted.

Returns

Point

Text coordinates of specified display point.

Remarks

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

DisplayPointToPoint(Point)

When implemented by a class, converts the specified display coordinates to the text coordinates.

Point DisplayPointToPoint(Point position)

Parameters

position Point

The Point value that specifies the display coordinates to be converted.

Returns

Point

Text coordinates of specified display point.

Remarks

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

DisplayPointToPoint(int, int, ref bool)

When implemented by a class, converts the specified display coordinates to the text coordinates.

Point DisplayPointToPoint(int x, int y, ref bool lineEnd)

Parameters

x int

The X-constituent of the Point value that specifies display coordinates to be converted.

y int

The Y-constituent of the Point value that specifies display coordinates to be converted.

lineEnd bool

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

Returns

Point

Text coordinates of specified display point.

Remarks

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

DisplayPointToPoint(int, int, bool, bool, bool)

When implemented by a class, converts the specified display coordinates to the text coordinates.

Point DisplayPointToPoint(int x, int y, bool wrapEnd, bool rangeStart, bool tabEnd)

Parameters

x int

The X-constituent of the Point value that specifies display coordinates to be converted.

y int

The Y-constituent of the Point value that specifies display coordinates to be converted.

wrapEnd bool

Reserved for internal use.

rangeStart bool

Reserved for internal use.

tabEnd bool

Reserved for internal use.

Returns

Point

Text coordinates of specified display point.

Remarks

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