38 references to Index
System.Windows.Forms (38)
winforms\Managed\System\WinForms\ListView.cs (14)
1719EnsureVisible(value.Index); 1728Scroll(0, value.Index); // To work around this, we force the listbox to display the first item, then scroll down to the item 1733if (value.Index == topItem.Index) 1736Scroll(topItem.Index, value.Index); 3129Rectangle iconBounds = this.GetItemRect(lvi.Index, ItemBoundsPortion.Icon); 3714item.UpdateStateToListView(item.Index); 4038SetItemImage(item.Index,imageListLarge.Images.Count - 1); 4041SetItemImage(item.Index,item.ImageIndexer.ActualIndex); 4051SetItemText(item.Index, 0 /*subItemIndex*/, item.Text); 4748item.UpdateStateToListView(item.Index); 7022indices[i] = owner.savedSelectedItems[i].Index; 7056return owner.savedSelectedItems[index].Index;
winforms\Managed\System\WinForms\ListViewGroup.cs (1)
624item.UpdateStateToListView(item.Index);
winforms\Managed\System\WinForms\ListViewGroupItemCollection.cs (1)
169item.UpdateStateToListView(item.Index);
winforms\Managed\System\WinForms\ListViewItem.cs (22)
367return listView.GetItemRect(Index); 420return(listView.GetItemState(Index, NativeMethods.LVIS_FOCUSED) != 0); 427listView.SetItemState(Index, value ? NativeMethods.LVIS_FOCUSED : 0, NativeMethods.LVIS_FOCUSED); 543listView.SetItemImage(Index, ImageIndexer.ActualIndex); 578listView.SetItemImage(Index, ImageIndexer.ActualIndex); 620listView.SetItemIndentCount(Index, indentCount); 692position = listView.GetItemPosition(Index); 702listView.SetItemPosition(Index, position.X, position.Y); 746return(listView.GetItemState(Index, NativeMethods.LVIS_SELECTED) != 0); 753listView.SetItemState(Index, value ? NativeMethods.LVIS_SELECTED: 0, NativeMethods.LVIS_SELECTED); 756listView.SetSelectionMark(Index); 786int state = listView.GetItemState(Index, NativeMethods.LVIS_STATEIMAGEMASK); 798listView.SetItemState(Index, state, NativeMethods.LVIS_STATEIMAGEMASK); 956if (Index >= 0) { 962UnsafeNativeMethods.SendMessage(new HandleRef(lv, lv.Handle), NativeMethods.LVM_EDITLABEL, Index, 0); 1023listView.EnsureVisible(Index); 1053return listView.GetItemRect(Index, portion); 1069if (iItem == this.Index && iSubItem != -1 && iSubItem < SubItems.Count) { 1130index = Index; 1218UnHost(Index, checkSelection); 1384int itemIndex = Index; 1498return owner.listView.GetSubItemRect(owner.Index, owner.SubItems.IndexOf(this));