Xamarin.Android | ComponentOne
C1.Android.Core Assembly / C1.Android.Core Namespace / C1InputEventArgs Class / GetPosition Method / GetPosition(TouchEventArgs,View) Method
The OriginalEventArgs instance containing the manipulation data.
Any visual object that is connected to the same object tree. To specify the object relative to the overall coordinate system, use a relativeTo value of null.


In This Topic
    GetPosition(TouchEventArgs,View) Method
    In This Topic
    Gets the position of the pointer or finger.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetPosition( _
       ByVal args As Android.Views.View.TouchEventArgs, _
       ByVal relativeTo As Android.Views.View _
    ) As C1Point
    'Usage
     
    
    Dim args As Android.Views.View.TouchEventArgs
    Dim relativeTo As Android.Views.View
    Dim value As C1Point
     
    value = C1InputEventArgs.GetPosition(args, relativeTo)
    public static C1Point GetPosition( 
       Android.Views.View.TouchEventArgs args,
       Android.Views.View relativeTo
    )

    Parameters

    args
    The OriginalEventArgs instance containing the manipulation data.
    relativeTo
    Any visual object that is connected to the same object tree. To specify the object relative to the overall coordinate system, use a relativeTo value of null.
    See Also