Chart area cursor and selection event arguments.
Visual Basic (Declaration) | |
---|---|
Public Class CursorEventArgs Inherits EventArgs |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class CursorEventArgs : EventArgs |
This class is exposed as the e parameter in the CursorPositionChanged, CursorPositionChanging, SelectionRangeChanged and SelectionRangeChanging events.
The properties of CursorEventArgs are:
-
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.
System.Object
System.EventArgs
Dundas.Charting.WinControl.CursorEventArgs
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