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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기