Dundas Chart for Windows Forms
CursorEventArgs Class
Members  See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace : CursorEventArgs Class


This class is used with the following events: CursorPositionChanged, CursorPositionChanging, SelectionRangeChanged and SelectionRangeChanging.
Chart area cursor and selection event arguments.

Object Model



Syntax

Visual Basic (Declaration)  
Public Class CursorEventArgs 
   Inherits EventArgs
Visual Basic (Usage) Copy Code
Dim instance As CursorEventArgs
C#  
public class CursorEventArgs : EventArgs 

Remarks

This class is exposed as the e parameter in the CursorPositionChanged, CursorPositionChanging, SelectionRangeChanged and SelectionRangeChanging events.

The properties of CursorEventArgs are:

  • the ChartArea property, used to get the ChartArea object the event was raised for.  The ChartArea.Name property gets the name of the chart area, and other chart area properties can also be set.
  • the Axis property, used to get the Axis object the event was raised for.  To determine the type of axis use the Axis.Type property (i.e. X, X2, Y and Y2). Other axis properties can also be set.
  • the NewPosition property, which is the position of a cursor along an axis (measured as an axis value) at the time the event was raised.  NewPosition can be used to get the position of a cursor, and for the CursorPositionChanging event it can also be used to reset the cursor position.
  • the NewSelectionStart property, which is the starting position of a range selection along an axis (measured as an axis value) at the time the event was raised.  NewSelectionStart can be used to get the selected range start position, and for the SelectionRangeChanging  event it can also be used to reset the position.
  • the NewSelectionEnd property, which is the end position of a range selection along an axis (measured as an axis value) at the time the event was raised.  NewSelectionEnd can be used to get the selected range end position, and for the SelectionRangeChanging  event it can also be used to reset the position.

Inheritance Hierarchy

System.Object
   System.EventArgs
      Dundas.Charting.WinControl.CursorEventArgs

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.