Advertisement
ivandrofly

CSharp - First visible index.

Jul 20th, 2016
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1.         //private ListViewItem GetFirstVisibleItem()
  2.         //{
  3.         //    foreach (ListViewItem item in Items)
  4.         //    {
  5.         //        if (ClientRectangle.Contains(new Rectangle(item.Bounds.Left, item.Bounds.Top, item.Bounds.Height, 10)))
  6.         //        {
  7.         //            return item;
  8.         //        }
  9.         //    }
  10.         //    return null;
  11.         //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement