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