问题描述
有人知道如何更改与列表框中的项目相关的编号吗?例如,我知道在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.
这篇关于如何更改与列表框项目关联的数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!