//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)); }
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); }
//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)); }
//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); }
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; }
//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); }
public SUIListViewItem(SUIListView lv, LVITEM item) { listView = lv; lvItem = item; }
public SUIListViewItem(SUIListView lv) { listView = lv; lvItem = new LVITEM(); }
public SUIListViewSubitem(SUIListView lv, LVITEM item, SUIListViewItem _parentItem) : base(lv, item) { parentItem = _parentItem; }