Android.Views.MotionEvent.GetX Method
Returns the X coordinate of this event for the given pointer index (use MotionEvent.GetPointerId(int) to find the pointer identifier for this index).

Syntax

[Android.Runtime.Register("getX", "(I)F", "")]
public float GetX (int pointerIndex)

Parameters

pointerIndex
Raw index of pointer to retrieve. Value may be from 0 (the first pointer that is down) to MotionEvent.PointerCount-1.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the X coordinate of this event for the given pointer index (use MotionEvent.GetPointerId(int) to find the pointer identifier for this index). Whole numbers are pixels; the value may have a fraction for input devices that are sub-pixel precise.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5