3 writes to listView
System.Windows.Forms (3)
winforms\Managed\System\WinForms\ListViewItem.cs (3)
1089listView = parent; 1230listView = null; 1348this.listView = listView;
114 references to listView
System.Windows.Forms (114)
winforms\Managed\System\WinForms\ListView.cs (3)
3272Debug.Assert(item.listView == this, "Can't GetDisplayIndex if the list item doesn't belong to us"); 3776if (items[i].listView != null) { 3804if (checkHosting && item.listView != null) {
winforms\Managed\System\WinForms\ListViewItem.cs (111)
344if (listView != null) { 345return listView.BackColor; 366if (listView != null) { 367return listView.GetItemRect(Index); 390if (listView != null && listView.IsHandleCreated) { 395if ((this.listView != null) && !this.listView.UseCompatibleStateImageBehavior) { 396if (!listView.CheckBoxes) { 397listView.UpdateSavedCheckedItems(this, value); 419if (listView != null && listView.IsHandleCreated) { 420return(listView.GetItemState(Index, NativeMethods.LVIS_FOCUSED) != 0); 426if (listView != null && listView.IsHandleCreated) { 427listView.SetItemState(Index, value ? NativeMethods.LVIS_FOCUSED : 0, NativeMethods.LVIS_FOCUSED); 444if (listView != null) { 445return listView.Font; 469if (listView != null) { 470return listView.ForeColor; 542if (listView != null && listView.IsHandleCreated) { 543listView.SetItemImage(Index, ImageIndexer.ActualIndex); 577if (listView != null && listView.IsHandleCreated) { 578listView.SetItemImage(Index, ImageIndexer.ActualIndex); 587if (listView != null) { 588switch(listView.View) { 591return listView.LargeImageList; 595return listView.SmallImageList; 619if (listView != null && listView.IsHandleCreated) { 620listView.SetItemIndentCount(Index, indentCount); 633if (listView != null) { 636if (!listView.VirtualMode) { 637lastIndex = listView.GetDisplayIndex(this, lastIndex); 655return listView; 691if (listView != null && listView.IsHandleCreated) { 692position = listView.GetItemPosition(Index); 700if (listView != null && listView.IsHandleCreated) { 701if (!listView.VirtualMode) { 702listView.SetItemPosition(Index, position.X, position.Y); 745if (listView != null && listView.IsHandleCreated) { 746return(listView.GetItemState(Index, NativeMethods.LVIS_SELECTED) != 0); 752if (listView != null && listView.IsHandleCreated) { 753listView.SetItemState(Index, value ? NativeMethods.LVIS_SELECTED: 0, NativeMethods.LVIS_SELECTED); 756listView.SetSelectionMark(Index); 760if (this.listView != null && this.listView.IsHandleCreated) { 763listView.CacheSelectedStateForItem(this, value); 785if (listView != null && listView.IsHandleCreated) { 786int state = listView.GetItemState(Index, NativeMethods.LVIS_STATEIMAGEMASK); 795if (listView != null && listView.IsHandleCreated) { 798listView.SetItemState(Index, state, NativeMethods.LVIS_STATEIMAGEMASK); 924if (this.listView != null && this.listView.IsHandleCreated) { 925this.listView.ListViewItemToolTipChanged(this); 1022if (listView != null && listView.IsHandleCreated) { 1023listView.EnsureVisible(Index); 1052if (listView != null && listView.IsHandleCreated) { 1053return listView.GetItemRect(Index, portion); 1060if (listView != null && listView.IsHandleCreated && listView.View == View.Details) { 1064listView.GetSubItemAt(x,y, out iItem, out iSubItem); 1085Debug.Assert(this.listView == null || !this.listView.VirtualMode, "ListViewItem::Host can't be used w/ a virtual item"); 1102Debug.Assert(this.listView != null, "This method is used only when items are parented in a list view"); 1103Debug.Assert(!this.listView.VirtualMode, "we need to update the group only when the user specifies the list view items in localizable forms"); 1108ListViewGroup group = this.listView.Groups[this.groupName]; 1127Debug.Assert(listView.IsHandleCreated, "Should only invoke UpdateStateToListView when handle is created."); 1156if (listView.GroupsEnabled) { 1158lvItem.iGroupId = listView.GetNativeGroupId(this); 1160Debug.Assert(!updateOwner || listView.SendMessage(NativeMethods.LVM_ISGROUPVIEWENABLED, 0, 0) != IntPtr.Zero, "Groups not enabled"); 1161Debug.Assert(!updateOwner || listView.SendMessage(NativeMethods.LVM_HASGROUP, lvItem.iGroupId, 0) != IntPtr.Zero, "Doesn't contain group id: " + lvItem.iGroupId.ToString(CultureInfo.InvariantCulture)); 1165UnsafeNativeMethods.SendMessage(new HandleRef(listView, listView.Handle), NativeMethods.LVM_SETITEM, 0, ref lvItem); 1170if (listView != null && listView.IsHandleCreated && displayIndex != -1) { 1193UnsafeNativeMethods.SendMessage(new HandleRef(listView, listView.Handle), NativeMethods.LVM_GETITEM, 0, ref lvItem); 1224if (this.listView != null && (this.listView.Site == null || !this.listView.Site.DesignMode) && this.group != null) { 1238if (listView != null) { 1239listView.Items.Remove(this); 1371if (listView != null && listView.IsHandleCreated) { 1372listView.Invalidate(); 1381if (listView != null && listView.IsHandleCreated) { 1387listView.SetItemText(itemIndex, index, subItems[index].Text); 1391listView.SetItemText(itemIndex, i, subItems[i].Text); 1396listView.SetItemText(itemIndex, i, string.Empty); 1474if (owner != null && owner.listView != null) { 1475return owner.listView.BackColor; 1497if(owner != null && owner.listView != null && owner.listView.IsHandleCreated) { 1498return owner.listView.GetSubItemRect(owner.Index, owner.SubItems.IndexOf(this)); 1542if (owner != null && owner.listView != null) { 1543return owner.listView.Font; 1572if (owner != null && owner.listView != null) { 1573return owner.listView.ForeColor;