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


Gets the start position of a selected range, and depending on the event also sets the range's start position.
New range selection start position.

Syntax

Visual Basic (Declaration)  
Public Property NewSelectionStart As Double
Visual Basic (Usage) Copy Code
Dim instance As CursorEventArgs
Dim value As Double
 
instance.NewSelectionStart = value
 
value = instance.NewSelectionStart
C#  
public double NewSelectionStart {get; set;}

Return Value

A double value that represents the start position of a selected range.

Remarks

This property represents the new position of a cursor, and can be used in the CursorPositionChanging and CursorPositionChanged events to get the cursor position.  It can also be used in the CursorPositionChanging event to set the cursor position. 

Setting this property in the CursorPositionChanging event will have no effect (NewSelectionStart will have a value of Double.Nan in this event).

The start position of a selected range is not necessarily less than the end position of a selected range.  The start position is the position where the user fist clicked within the chart area, and the end position is the position of the mouse at the time the event is fired. 

To determine the chart area that the event is being raised for use the ChartArea property.

To determine if this end position is for a range selected along the primary or secondary X or Y axis use the Axis property. 

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.