ArcGIS API for WPF - Library Reference
GetPosition Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client Namespace > Map.MapGestureEventArgs Class : GetPosition Method

relativeTo
The element to use as the frame of reference for calculating the position of the mouse pointer.
Returns the position of the mouse pointer relative to the specified element.

Syntax

Visual Basic (Declaration) 
Public Function GetPosition( _
   ByVal relativeTo As IInputElement _
) As Point
C# 
public Point GetPosition( 
   IInputElement relativeTo
)

Parameters

relativeTo
The element to use as the frame of reference for calculating the position of the mouse pointer.

Return Value

The x- and y-coordinates of the mouse pointer position relative to the specified object.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© ESRI, Inc. All Rights Reserved.