Dundas Chart for Windows Forms
Sort(PointsSortOrder,String) Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > Series Class > Sort Method : Sort(PointsSortOrder,String) Method


order

A PointsSortOrder enumeration value that determines if the sort on Y-values is ascending or descending.


Sorting order.
sortBy

A string value that represents the data point values to be sorted. Possible values are: "X", "Y", "Y2", "Y3", "AxisLabel", etc. 

Note:  If X-values are of type string, they are stored in the AxisLabel,  this should be specified instead of "X"


Value used for sorting (X, Y, Y2, ...).

Performs a sort on a series' data points with the specified sort order, and is performed on the specified X or Y-value.


Sorts points in the series.

Syntax

Visual Basic (Declaration)  
Public Overloads Sub Sort( _
   ByVal order As PointsSortOrder, _
   ByVal sortBy As String _
) 
Visual Basic (Usage) Copy Code
Dim instance As Series
Dim order As PointsSortOrder
Dim sortBy As String
 
instance.Sort(order, sortBy)
C#  
public void Sort( 
   PointsSortOrder order,
   string sortBy
)

Parameters

order

A PointsSortOrder enumeration value that determines if the sort on Y-values is ascending or descending.


Sorting order.
sortBy

A string value that represents the data point values to be sorted. Possible values are: "X", "Y", "Y2", "Y3", "AxisLabel", etc. 

Note:  If X-values are of type string, they are stored in the AxisLabel,  this should be specified instead of "X"


Value used for sorting (X, Y, Y2, ...).

Remarks

Performs a sort on the data points in a series, using the given sort order and performed on the specified data stored by the data points. Sorting can be performed on the X-value or on any Y-value (e.g. if the series' data points have more than one Y-value than sorting can be performed on any one of them).

The DataManipulator class also exposes an overloaded Sort method, which can perform a sort on multiple series.

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.