[]
        
(Showing Draft Content)

C1.iOS.Core.C1InputEventArgs.GetPosition

GetPosition Method

GetPosition(UIView)

Gets the position of the pointer performing the drag gesture relatively to the specified element.

Declaration
public CGPoint GetPosition(UIView relativeTo)
Parameters
Type Name Description
UIView 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.

Returns
Type Description
CGPoint

GetPosition(UIGestureRecognizer, UIView)

Gets the position of the pointer or finger.

Declaration
public static CGPoint GetPosition(UIGestureRecognizer args, UIView relativeTo)
Parameters
Type Name Description
UIGestureRecognizer args

The OriginalEventArgs instance containing the manipulation data.

UIView 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.

Returns
Type Description
CGPoint