在列表框中突出显示一个项目 [英] highlight an item in the listbox
本文介绍了在列表框中突出显示一个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何突出显示列表框中的项目?
How do you highlight an item in a listbox?
推荐答案
使用
listbox.SelectedItem = 要在列表中突出显示的对象.
或
listbox.SelectedIndex = 要突出显示的项目的数字索引.
using
listbox.SelectedItem = object to hightlight in the list.
or
listbox.SelectedIndex = numeric index of the item you want highlighted.
这篇关于在列表框中突出显示一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文