如何更改与列表框项目关联的数字? [英] How do I change the number associated with a listbox item?

查看:53
本文介绍了如何更改与列表框项目关联的数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何更改与列表框中的项目相关的编号吗?例如,我知道在listbox中,列表框中的项目编号为第一个项目0,然后是1,然后是3,依此类推.反正有没有改变相关的数字 就像我是否要将我的第一个列表框项目(0)编号为10.25而不是0?有什么办法吗? :)

Does anyone know how to change the number associated with the item in a listbox? for example, I know that in a listbox , the items in the listbox are numbered the first item 0, then 1, then 3, and so on. Is there anyway to change the number associated with it like if I want my first listbox item (0) to be numbered as 10.25 instead of 0? Is there any way to do that? :)

推荐答案

不,那没有任何意义.数字是列表中项目的索引.

No, that doesn't make any sense. The number is the index of the item in the list.

不过,还有许多其他方法可以将数字与项目相关联.

There are many other ways to associate a number with an item though.


这篇关于如何更改与列表框项目关联的数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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