Xamarin.Forms | ComponentOne
C1.Xamarin.Forms.Core Assembly / C1.Xamarin.Forms.Core Namespace / C1InputEventArgs Class / GetPosition Method / GetPosition(View) Method
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(View) Method
    In This Topic
    Gets the position of the pointer performing the drag gesture relatively to the specified element.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetPosition( _
       ByVal relativeTo As Xamarin.Forms.View _
    ) As Xamarin.Forms.Point
    'Usage
     
    
    Dim instance As C1InputEventArgs
    Dim relativeTo As Xamarin.Forms.View
    Dim value As Xamarin.Forms.Point
     
    value = instance.GetPosition(relativeTo)
    public Xamarin.Forms.Point GetPosition( 
       Xamarin.Forms.View relativeTo
    )

    Parameters

    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