title: Show a tooltip with icon and header in Winforms Listview (only if text is trimmed)
body: <p>I need to show a tooltip with an icon, a header and a text when the mouse hovers a ListViewSubItem. But the <strong>tooltip</strong> shall <strong>only pop up when</strong> the underlying text of the cell is <strong>trimmed with ellipses</strong>.</p>
  
  <p>Up to now I have the following code:</p>
  
  <pre><code>private void ListView_ItemMouseHover(object sender, ListViewItemMouseHoverEventArgs e)
  {
      if (e.Item != null)
      {
          // get last subItem
          ListViewItem.ListViewSubItem mySubItem = e.Item.SubItems[item.SubItems.Count - 1];
  
          // TODO -&gt; how to check if text is trimmmed?
          // e.g. "This is the displayed text in the subitem whi..."
  
          //if (mySubItem.IsTrimmed???)
          {
              // mToolTip is an instance of ToolTip class
              mToolTip.ToolTipIcon = // any icon...
              mToolTip.ToolTipTitle = "some title text";
              mToolTip.SetToolTip(ListView, "some body text");
          }
      }
      else
      {
          mToolTip.Hide(ListView);
      }
  }
  </code></pre>
  
  <p>Any ideas?</p>