Series.Sort Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs a sort on a Series. Note that the DataManipulator class provides sort methods that have greater flexibility than these sort methods.
Overloads
Sort(IComparer<DataPoint>) |
Sorts the points in the series using IComparer interface. |
Sort(PointSortOrder) |
Sorts the data points in the series, given the specified sort order. |
Sort(PointSortOrder, String) |
Sorts the points in the series, given the specified sort order and value to use for the sort. |
Sort(IComparer<DataPoint>)
Sorts the points in the series using IComparer interface.
public:
void Sort(System::Collections::Generic::IComparer<System::Windows::Forms::DataVisualization::Charting::DataPoint ^> ^ comparer);
public void Sort (System.Collections.Generic.IComparer<System.Windows.Forms.DataVisualization.Charting.DataPoint> comparer);
member this.Sort : System.Collections.Generic.IComparer<System.Windows.Forms.DataVisualization.Charting.DataPoint> -> unit
Public Sub Sort (comparer As IComparer(Of DataPoint))
Parameters
Applies to
Sort(PointSortOrder)
Sorts the data points in the series, given the specified sort order.
public:
void Sort(System::Windows::Forms::DataVisualization::Charting::PointSortOrder pointSortOrder);
public void Sort (System.Windows.Forms.DataVisualization.Charting.PointSortOrder pointSortOrder);
member this.Sort : System.Windows.Forms.DataVisualization.Charting.PointSortOrder -> unit
Public Sub Sort (pointSortOrder As PointSortOrder)
Parameters
- pointSortOrder
- PointSortOrder
The sort order.
Applies to
Sort(PointSortOrder, String)
Sorts the points in the series, given the specified sort order and value to use for the sort.
public:
void Sort(System::Windows::Forms::DataVisualization::Charting::PointSortOrder pointSortOrder, System::String ^ sortBy);
public void Sort (System.Windows.Forms.DataVisualization.Charting.PointSortOrder pointSortOrder, string sortBy);
member this.Sort : System.Windows.Forms.DataVisualization.Charting.PointSortOrder * string -> unit
Public Sub Sort (pointSortOrder As PointSortOrder, sortBy As String)
Parameters
- pointSortOrder
- PointSortOrder
The sort order.
- sortBy
- String
The value used for the sort (X, Y, Y2 ...).
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應