TouchEventArgs.GetPosition Method

Gets the position at which the touch (or stylus) event occurred.

Namespace: Microsoft.SPOT.Input
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)

Syntax

public void GetPosition (
         UIElementrelativeTo,
         inttouchIndex,
         ref intx,
         ref inty
)

Parameters

  • relativeTo
    The UIElement in whose coordinate space the touch position should be expressed.
  • touchIndex
    The index of the touch point in the array of touch points for the touch (or stylus) event.
  • x
    [OutAttribute] The X coordinate, in the coordinate space of the relativeToUIElement, of the point at which the event occurred.
  • y
    [OutAttribute] The Y coordinate, in the coordinate space of the relativeToUIElement, of the point at which the event occurred.

Version Information

Available in the .NET Micro Framework versions 4.0 and 4.1.

See Also

Reference

TouchEventArgs Class
TouchEventArgs Members
Microsoft.SPOT.Input Namespace