Gets or sets the end position of a range selection.
Range selection end position.
Visual Basic (Declaration) | |
---|---|
Public Property SelectionEnd As Double |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public double SelectionEnd {get; set;} |
Return Value
A Double value that represents the end position of a range selection.A user can select a range within a chart area by clicking on the left mouse button and then dragging the mouse (note that the UserSelection property must also be set to TRUE). In addition a range selection can be set programmatically using either the SelectionEnd and SelectionStart properties or the SetSelectionPosition or SetSelectionPixelPosition methods.
The end position of a range selection is calculated as a value of the axis that the cursor belongs to. For example, if the cursor belongs to the primary X axis then setting this to a value of January 1, 2000 will result in the end of the selected region occurring at January 1, 2000 along the primary X axis.
To programmatically remove a range selection set the beginning and end points of the range to Double.NaN using the SelectionEnd and SelectionStart properties, or the SetSelectionPosition method.
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