Example #1
0
        //Index of the item to begin the search with,
        //or -1 to find the first item that matches the specified flags.
        //The specified item itself is excluded from the search.
        internal SUIListViewItem GetNextItem(int startItemIndex, int flag)
        {
            LVITEM item = new LVITEM();

            item.iItem = SUIWinAPIs.SendMessage(WindowHandle, SUIMessage.LVM_GETNEXTITEM, startItemIndex, flag).ToInt32();
            return(new SUIListViewItem(this, item));
        }
Example #2
0
        public SUIListViewItem GetItemByIndex(int index)
        {
            if (index < 0 || index + 1 > Count)
            {
                throw new SUIException("Index is out of item range!");
            }

            LVITEM i = new LVITEM();

            i.iItem = index;
            SUIListViewItem item = new SUIListViewItem(this, i);

            return(item);
        }
Example #3
0
        //One based index.
        public SUIListViewSubitem GetSubitem(int subitemIndex)
        {
            if (IsInvalidItem)
            {
                throw new SUIException("Cannot get subitem of an invalid item!");
            }

            if (subitemIndex < 0 || (ListView.ColumnCount > 0 && subitemIndex >= ListView.ColumnCount))
            {
                throw new SUIException("Index is out of range!");
            }

            LVITEM item = new LVITEM();

            item.iItem    = Index;
            item.iSubItem = subitemIndex;
            return(new SUIListViewSubitem(ListView, item, this));
        }
Example #4
0
 //Index of the item to begin the search with, 
 //or -1 to find the first item that matches the specified flags. 
 //The specified item itself is excluded from the search. 
 internal SUIListViewItem GetNextItem(int startItemIndex, int flag)
 {
     LVITEM item = new LVITEM();
     item.iItem = SUIWinAPIs.SendMessage(WindowHandle, SUIMessage.LVM_GETNEXTITEM, startItemIndex, flag).ToInt32();
     return new SUIListViewItem(this, item);
 }
Example #5
0
        public SUIListViewItem GetItemByIndex(int index)
        {
            if (index < 0 || index + 1 > Count)
                throw new SUIException("Index is out of item range!");

            LVITEM i = new LVITEM();
            i.iItem = index;
            SUIListViewItem item = new SUIListViewItem(this, i);
            
            return item;
        }
Example #6
0
        //One based index.
        public SUIListViewSubitem GetSubitem(int subitemIndex)
        {
            if (IsInvalidItem)
                throw new SUIException("Cannot get subitem of an invalid item!");

            if (subitemIndex < 0 || (ListView.ColumnCount > 0 && subitemIndex >= ListView.ColumnCount))
                throw new SUIException("Index is out of range!");

            LVITEM item = new LVITEM();
            item.iItem = Index;
            item.iSubItem = subitemIndex;
            return new SUIListViewSubitem(ListView, item, this);
        }
Example #7
0
 public SUIListViewItem(SUIListView lv, LVITEM item)
 {
     listView = lv;
     lvItem = item;
 }
Example #8
0
 public SUIListViewItem(SUIListView lv)
 {
     listView = lv;
     lvItem = new LVITEM();
 }
Example #9
0
 public SUIListViewSubitem(SUIListView lv, LVITEM item, SUIListViewItem _parentItem)
     : base(lv, item)
 {
     parentItem = _parentItem;
 }
Example #10
0
 public SUIListViewSubitem(SUIListView lv, LVITEM item, SUIListViewItem _parentItem)
     : base(lv, item)
 {
     parentItem = _parentItem;
 }
Example #11
0
 public SUIListViewItem(SUIListView lv, LVITEM item)
 {
     listView = lv;
     lvItem   = item;
 }
Example #12
0
 public SUIListViewItem(SUIListView lv)
 {
     listView = lv;
     lvItem   = new LVITEM();
 }