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
- relativeTo
Type: Microsoft.SPOT.Presentation. . :: . .UIElement
The element in whose coordinate space the touch position should be expressed.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.