Пример #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));
        }
Пример #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);
        }
Пример #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));
        }
Пример #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);
 }
Пример #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;
        }
Пример #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);
        }
Пример #7
0
 public SUIListViewItem(SUIListView lv, LVITEM item)
 {
     listView = lv;
     lvItem = item;
 }
Пример #8
0
 public SUIListViewItem(SUIListView lv)
 {
     listView = lv;
     lvItem = new LVITEM();
 }
Пример #9
0
 public SUIListViewSubitem(SUIListView lv, LVITEM item, SUIListViewItem _parentItem)
     : base(lv, item)
 {
     parentItem = _parentItem;
 }
Пример #10
0
 public SUIListViewSubitem(SUIListView lv, LVITEM item, SUIListViewItem _parentItem)
     : base(lv, item)
 {
     parentItem = _parentItem;
 }
Пример #11
0
 public SUIListViewItem(SUIListView lv, LVITEM item)
 {
     listView = lv;
     lvItem   = item;
 }
Пример #12
0
 public SUIListViewItem(SUIListView lv)
 {
     listView = lv;
     lvItem   = new LVITEM();
 }