Share via


GetPosition Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

'Declaration
Public Sub GetPosition ( _
    relativeTo As UIElement, _
    touchIndex As Integer, _
    <OutAttribute> ByRef x As Integer, _
    <OutAttribute> ByRef y As Integer _
)
public void GetPosition(
    UIElement relativeTo,
    int touchIndex,
    out int x,
    out int y
)
public:
void GetPosition(
    UIElement^ relativeTo, 
    int touchIndex, 
    [OutAttribute] int% x, 
    [OutAttribute] int% y
)
member GetPosition : 
        relativeTo:UIElement * 
        touchIndex:int * 
        x:int byref * 
        y:int byref -> unit 
public function GetPosition(
    relativeTo : UIElement, 
    touchIndex : int, 
    x : int, 
    y : int
)

Parameters

  • touchIndex
    Type: System. . :: . .Int32
    The index of the touch point in the array of touch points for the touch (or stylus) event.
  • x
    Type: System. . :: . .Int32%
    The X coordinate, in the coordinate space of the relativeToUIElement, of the point at which the event occurred.
  • y
    Type: System. . :: . .Int32%
    The Y coordinate, in the coordinate space of the relativeToUIElement, of the point at which the event occurred.

.NET Framework Security

See Also

Reference

TouchEventArgs Class

Microsoft.SPOT.Input Namespace