1 write to owner
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ListView.cs (1)
6979this.owner = owner;
29 references to owner
System.Windows.Forms (29)
winforms\Managed\System\WinForms\ListView.cs (29)
6989if (owner.IsHandleCreated) { 6990return unchecked( (int) (long)owner.SendMessage(NativeMethods.LVM_GETSELECTEDCOUNT, 0, 0)); 6993if (owner.savedSelectedItems != null) { 6994return owner.savedSelectedItems.Count; 7006if (owner.IsHandleCreated) { 7009int fidx = unchecked( (int) (long)owner.SendMessage(NativeMethods.LVM_GETNEXTITEM, displayIndex, NativeMethods.LVNI_SELECTED)); 7020Debug.Assert(owner.savedSelectedItems != null || count == 0, "if the count of selectedItems is greater than 0 then the selectedItems should have been saved by now"); 7022indices[i] = owner.savedSelectedItems[i].Index; 7041if (owner.IsHandleCreated) { 7048fidx = unchecked( (int) (long)owner.SendMessage(NativeMethods.LVM_GETNEXTITEM, fidx, NativeMethods.LVNI_SELECTED)); 7055Debug.Assert(owner.savedSelectedItems != null, "Null selected items collection"); 7056return owner.savedSelectedItems[index].Index; 7111return owner.Items[selectedIndex].Selected; 7199if (this.owner.VirtualMode) 7201if (itemIndex < 0 || itemIndex >= this.owner.VirtualListSize) 7205if (this.owner.IsHandleCreated) 7207this.owner.SetItemState(itemIndex, NativeMethods.LVIS_SELECTED, NativeMethods.LVIS_SELECTED); 7217if (itemIndex < 0 || itemIndex >= this.owner.Items.Count) 7221this.owner.Items[itemIndex].Selected = true; 7229if (!this.owner.VirtualMode) 7231this.owner.savedSelectedItems = null; 7233if (this.owner.IsHandleCreated) 7235this.owner.SetItemState(-1, 0, NativeMethods.LVIS_SELECTED); 7263if (this.owner.VirtualMode) 7265if (itemIndex < 0 || itemIndex >= this.owner.VirtualListSize) 7269if (this.owner.IsHandleCreated) 7271this.owner.SetItemState(itemIndex, 0, NativeMethods.LVIS_SELECTED); 7276if (itemIndex < 0 || itemIndex >= this.owner.Items.Count) 7280this.owner.Items[itemIndex].Selected = false;