[]
        
(Showing Draft Content)

C1.Blazor.Core.C1InputEventArgs.GetPosition

GetPosition Method

GetPosition(ComponentBase)

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

Declaration
public C1Point GetPosition(ComponentBase relativeTo)
Parameters
Type Name Description
ComponentBase 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
C1Point

GetPosition(MouseEventArgs, ComponentBase)

Gets the position of the pointer or finger.

Declaration
public static C1Point GetPosition(MouseEventArgs args, ComponentBase relativeTo)
Parameters
Type Name Description
MouseEventArgs args

The OriginalEventArgs instance containing the manipulation data.

ComponentBase 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
C1Point