Table of Contents

Method GetPosition

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

GetPosition(double)

Gets mouse button position.

public static PointD GetPosition(double scaleFactor)

Parameters

scaleFactor double

Scale factor to use when converting pixels to dips.

Returns

PointD

GetPosition(Control?)

Calculates the position of the mouse relative to a particular element.

public static PointD GetPosition(Control? relativeTo)

Parameters

relativeTo Control

Returns

PointD