Cursor Constructor (String^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the Cursor class from the specified .ani or a .cur file.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public:
Cursor(
	String^ cursorFile
)

Parameters

cursorFile
Type: System::String^

The file that contains the cursor.

Exception Condition
ArgumentNullException

cursorFile is null.

ArgumentException

cursorFile is not an .ani or .cur file name.

.NET Framework
Available since 3.0
Return to top
Show: