Share via


AbsSpinner.PointToPosition(Int32, Int32) Method

Definition

Maps a point to a position in the list.

[Android.Runtime.Register("pointToPosition", "(II)I", "GetPointToPosition_IIHandler")]
public virtual int PointToPosition (int x, int y);
[<Android.Runtime.Register("pointToPosition", "(II)I", "GetPointToPosition_IIHandler")>]
abstract member PointToPosition : int * int -> int
override this.PointToPosition : int * int -> int

Parameters

x
Int32

X in local coordinate

y
Int32

Y in local coordinate

Returns

The position of the item which contains the specified point, or #INVALID_POSITION if the point does not intersect an item.

Attributes

Remarks

Maps a point to a position in the list.

Java documentation for android.widget.AbsSpinner.pointToPosition(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to