MouseDevice.GetClientPosition Method (PresentationSource)

 

Calculates the position of the mouse pointer, in client coordinates, in the specified PresentationSource.

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

protected Point GetClientPosition(
	PresentationSource presentationSource
)

Parameters

presentationSource
Type: System.Windows.PresentationSource

The source in which to obtain the mouse position.

Return Value

Type: System.Windows.Point

The position of the mouse pointer, in client coordinates, in the specified PresentationSource.

.NET Framework
Available since 3.0
Return to top
Show: