Table of Contents

Method CalcUnscrolledPositionD

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

CalcUnscrolledPositionD(PointD)

Translates the device coordinates to the logical ones.

public virtual PointD CalcUnscrolledPositionD(PointD point)

Parameters

point PointD

Device coordinates.

Returns

PointD

Remarks

For example, if a control is scrolled 10 pixels to the bottom, the device coordinates of the origin are (0, 0) (as always), but the logical coordinates are (0, 10) and so the call to CalcUnscrolledPosition(0, 0) will return 10 in y.