如何设置提示为的ListViewItem [英] How to set tooltip for a ListviewItem
本文介绍了如何设置提示为的ListViewItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有ListView和固定大小的几列
I have ListView and few columns of fixed size
文lenghth我填列可能超过列结果的固定长度的
因此,当用户依据是ListViewItem的鼠标,应该显示工具提示拓展项目
the text lenghth i fill in the column may exceed the fixed length of column
so when user rests the mouse on that ListviewItem, a tooltip should be shown expanding the item
我试过
ListViewItem iListView = new ListViewItem("add");
iListView.ToolTipText = "Add Expanded";
myListView.Items.Add(iListView);
但是没有用
推荐答案
设置ListView的 ShowItemToolTips
属性设置为true。
Set the ListView's ShowItemToolTips
property to true.
这篇关于如何设置提示为的ListViewItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文