CursorInteropHelper.Create(SafeHandle) Metod

Definition

Returnerar ett Windows Presentation Foundation -objekt (WPF) Cursor baserat på ett angivet Win32-markörhandtag.

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

Parametrar

cursorHandle
SafeHandle

Markörreferens som ska användas för interoperation.

Returer

Markören Windows Presentation Foundation (WPF) baserat på det angivna Win32-markörhandtaget.

Attribut

Kommentarer

Om du ställer in en anpassad markörbild krävs säkerhetsbehörigheter även om det görs i ren WPF programmering. Se även Cursor.

Gäller för

Se även