Share via


InputDesktopNamedResourceCursor Class

Definition

Represents a visual pointer object that uses an application resource instead of a predefined system cursor.

public ref class InputDesktopNamedResourceCursor sealed : InputCursor
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65537)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class InputDesktopNamedResourceCursor final : InputCursor
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65537)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class InputDesktopNamedResourceCursor : InputCursor
Public NotInheritable Class InputDesktopNamedResourceCursor
Inherits InputCursor
Inheritance
Object Platform::Object IInspectable InputCursor InputDesktopNamedResourceCursor
Attributes

Remarks

Derived from InputCursor.

Uses a string resource name. If you need to use a resource ID instead, see InputDesktopResourceCursor (Visual Studio assigns a unique integer ID to new resources).

You can add a .res resource file that contains a custom cursor to your project and include it in your assembly with the /win32res compiler option. The Id is the Cursor Resource ID specified in the .res file.

Properties

ModuleName

Gets the name of the module that contains the cursor resource.

ResourceName

Gets the name of the cursor resource.

Methods

Close()

Closes the InputCursor and releases system resources.

(Inherited from InputCursor)
Create(String)

Creates an InputDesktopResourceCursor instance using the specified resource name.

CreateFromModule(String, String)

Creates an InputDesktopNamedResourceCursor instance using the specified resource name and the module from which to load the resource.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from InputCursor)

Applies to

See also