Cursor Constructor (String^)

 

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: