CursorInteropHelper.Create(SafeHandle) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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.