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