listview
オブジェクトがあり、その中にいくつかの列があります。列の 1 つがすべてのテキスト情報に収まらず、テキストが切り取られています。このようなものを実装する必要があります: ユーザーがマウス カーソルをこの列のセルに移動すると、すべてのテキストが表示されます。それは可能ですか?今私が持っています:
protected ListViewItem GetItem(ListView listView, Point mousePosition)
{
Point localPoint = listView.PointToClient(mousePosition);
return listView.GetItemAt(localPoint.X, localPoint.Y);
}
private void myListView_MouseMove(object sender, MouseEventArgs e)
{
ListViewItem item = GetItem(myListView, Cursor.Position);
// or should I use e.Location instead of Cursor.Position?
item.ToolTipText = "my info"//Now I need to show "my info" on the cell
//that user move cursor on
}