Android.Views.View.GetLocationOnScreen Method

Syntax

[Android.Runtime.Register("getLocationOnScreen", "([I)V", "GetGetLocationOnScreen_arrayIHandler")]
public virtual void GetLocationOnScreen (int[] location)

Parameters

location
an array of two integers in which to hold the coordinates

Remarks

Computes the coordinates of this view on the screen. The argument must be an array of two integers. After the method returns, the array contains the x and y location in that order.

[Android Documentation]

Requirements

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