Table of Contents

Method PointToDisplayPoint

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

PointToDisplayPoint(int, int)

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

Point PointToDisplayPoint(int x, int y)

Parameters

x int

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

y int

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

Returns

Point

Display coordinates of the specified text point.

Remarks

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

PointToDisplayPoint(Point)

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

Point PointToDisplayPoint(Point position)

Parameters

position Point

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

Returns

Point

Display coordinates of the specified text point.

Remarks

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

PointToDisplayPoint(int, int, bool)

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

Point PointToDisplayPoint(int x, int y, bool lineEnd)

Parameters

x int

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

y int

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

lineEnd bool

Boolean value indicating if the text position can be set to the end of the wrapped line.

Returns

Point

Display coordinates of the specified text point.

Remarks

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