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.Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8