Chart for .NET / User's Guide / Interactivity / Interactivity Style Tools / Cursor Tool

Cursor Tool

The control can change the mouse cursor for all objects that have an associated NInteractivityStyle (practically all visual objects). You enable the cursor change feature by adding an object of type NCursorTool to the Tools collection. The following code instructs the control to display a hand cursor when the mouse is over the background:

C#
Copy Code
chartControl.InteractivityStyle.Cursor.Type = CursorType.Hand;
chartControl.Controller.Tools.Add(new NCursorTool());
Visual Basic
Copy Code
chartControl.InteractivityStyle.Cursor.Type = CursorType.Hand
chartControl.Controller.Tools.Add(New NCursorTool)
 Related Examples

Windows forms: Interactivity\Tooltips and Cursor Tool

Web forms: Getting started\HTML image map, Getting started\HTML image map postback

See Also