CursorInteropHelper.Create(SafeHandle) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個基於提供的 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。