Table of Contents

Method PositionToCoords

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

PositionToCoords(long)

Converts given text position to client coordinates in pixels.

PointD PositionToCoords(long pos)

Parameters

pos long

Text position in 0 to GetLastPosition() range (inclusive).

Returns

PointD

On success returns a wxPoint which contains client coordinates for the given position in pixels, otherwise returns (-1,-1).

Remarks

This function allows finding where is the character at the given position displayed in the text control.