Share via


CursorInteropHelper.Create(SafeHandle) 方法

定義

根據提供的 Win32 資料指標控制碼傳回Windows Presentation Foundation (WPF) Cursor 物件。

public:
 static System::Windows::Input::Cursor ^ Create(System::Runtime::InteropServices::SafeHandle ^ cursorHandle);
[System.Security.SecurityCritical]
public static System.Windows.Input.Cursor Create (System.Runtime.InteropServices.SafeHandle cursorHandle);
public static System.Windows.Input.Cursor Create (System.Runtime.InteropServices.SafeHandle cursorHandle);
[<System.Security.SecurityCritical>]
static member Create : System.Runtime.InteropServices.SafeHandle -> System.Windows.Input.Cursor
static member Create : System.Runtime.InteropServices.SafeHandle -> System.Windows.Input.Cursor
Public Shared Function Create (cursorHandle As SafeHandle) As Cursor

參數

cursorHandle
SafeHandle

用於互通的游標參考。

傳回

根據提供的 Win32 資料指標控制碼,Windows Presentation Foundation (WPF) 資料指標物件。

屬性

備註

即使在純 WPF 程式設計中完成,設定自訂資料指標映射仍需要安全性許可權。 請參閱 Cursor

適用於

另請參閱