語言

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。

適用於

另請參閱