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
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for