DragEventArgs::GetPosition Method (IInputElement^)

 

Returns a drop point that is relative to a specified IInputElement.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public:
Point GetPosition(
	IInputElement^ relativeTo
)

Parameters

relativeTo
Type: System.Windows::IInputElement^

An IInputElement object for which to get a relative drop point.

Return Value

Type: System.Windows::Point

A drop point that is relative to the element specified in relativeTo.

Exception Condition
ArgumentNullException

Raised when relativeTo is null.

.NET Framework
Available since 3.0
Return to top
Show: