Table of Contents

Method DisplayPointToPoint

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

DisplayPointToPoint(int, int)

Converts the specified display coordinates to text coordinates.

public virtual Point DisplayPointToPoint(int x, int y)

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.

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)

Converts the specified display coordinates to text coordinates.

public virtual 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)

Converts the specified display coordinates to the text coordinates.

public virtual 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)

Converts the specified display coordinates to the text coordinates.

public virtual 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.

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

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

Parameters

x int
y int
wrapEnd bool
rangeStart bool
tabEnd bool
lineEnd bool

Returns

Point