Xamarin.Forms | ComponentOne
C1.Xamarin.Forms.Core Assembly / C1.Xamarin.Forms.Core Namespace / C1InputEventArgs Class / GetPosition Method / GetPosition(Object,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(Object,View) Method
    In This Topic
    Gets the position of the pointer or finger.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetPosition( _
       ByVal args As Object, _
       ByVal relativeTo As Xamarin.Forms.View _
    ) As Xamarin.Forms.Point
    'Usage
     
    
    Dim args As Object
    Dim relativeTo As Xamarin.Forms.View
    Dim value As Xamarin.Forms.Point
     
    value = C1InputEventArgs.GetPosition(args, relativeTo)
    public static Xamarin.Forms.Point GetPosition( 
       object args,
       Xamarin.Forms.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