MouseDevice.GetClientPosition 方法

定義

計算滑鼠指標的位置 (在工作區座標中)。

多載

GetClientPosition()

計算滑鼠指標的位置 (在工作區座標中)。

GetClientPosition(PresentationSource)

在指定的 PresentationSource 中,計算滑鼠指標的位置 (在工作區座標中)。

GetClientPosition()

計算滑鼠指標的位置 (在工作區座標中)。

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

傳回

滑鼠指標的位置 (在工作區座標中)。

屬性

適用於

GetClientPosition(PresentationSource)

在指定的 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

參數

presentationSource
PresentationSource

要從中取得滑鼠位置的來源。

傳回

指定之 PresentationSource 中的滑鼠指標位置 (在工作區座標中)。

適用於