2021年3月11日星期四

Sorting list of by their X and Y property

I have a list of "clsLabel":

Private _ListOfAllLabels As New List(Of clsLabel)    Public Class clsLabel      Public Name As String      Public X As Double      Public Y As Double  End Class  

X and Y define the location of the Label.

How could I sort my List(of clsLabel) in such a way that it's sorted by Y and then by X ascendingly?

Thank you!

https://stackoverflow.com/questions/66592643/sorting-list-of-by-their-x-and-y-property March 12, 2021 at 08:48AM

没有评论:

发表评论