Android.Views.View.GetLocationInWindow Method

Syntax

[Android.Runtime.Register("getLocationInWindow", "([I)V", "GetGetLocationInWindow_arrayIHandler")]
public virtual void GetLocationInWindow (int[] location)

Parameters

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

Remarks

Computes the coordinates of this view in its window. 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