Redigera

Dela via


MouseDevice.GetClientPosition Method

Definition

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

Overloads

GetClientPosition()

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

GetClientPosition(PresentationSource)

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

GetClientPosition()

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

protected:
 System::Windows::Point GetClientPosition();
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected System.Windows.Point GetClientPosition ();
protected System.Windows.Point GetClientPosition ();
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
member this.GetClientPosition : unit -> System.Windows.Point
member this.GetClientPosition : unit -> System.Windows.Point
Protected Function GetClientPosition () As Point

Returns

The position of the mouse pointer, in client coordinates.

Attributes

Applies to

GetClientPosition(PresentationSource)

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

protected:
 System::Windows::Point GetClientPosition(System::Windows::PresentationSource ^ presentationSource);
protected System.Windows.Point GetClientPosition (System.Windows.PresentationSource presentationSource);
member this.GetClientPosition : System.Windows.PresentationSource -> System.Windows.Point
Protected Function GetClientPosition (presentationSource As PresentationSource) As Point

Parameters

presentationSource
PresentationSource

The source in which to obtain the mouse position.

Returns

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

Applies to