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

适用于

另请参阅