如何按名称排序列表? [英] how to sort List by name?

查看:234
本文介绍了如何按名称排序列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何按名称对Picturebox列表进行排序?



提前感谢,

z3ngew

Hello everyone,
How can I sort the List of Picturebox by name?

thanks in advance,
z3ngew

推荐答案

看看这个,



使用C#列表进行排序 [ ^ ]






试试这个:

Hi,

Try this:
List<picturebox> sortedList = pictureBoxList.OrderBy(p => p.Name).ToList();
</picturebox>



希望这会有所帮助。


Hope this helps.


这篇关于如何按名称排序列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆