6 writes to ListView
System.Windows.Forms (6)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
739ListView = this
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (5)
49value.ListView = _listView; 123group.ListView = _listView; 198this[i].ListView = null; 248group.ListView = _listView; 285group.ListView = null;
55 references to ListView
System.Windows.Forms (19)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (8)
78=> _accessibilityObject ??= new ListViewGroupAccessibleObject(this, ListView?.Groups.Contains(this) == false); 393if (ListView is null) 395throw new InvalidOperationException(nameof(ListView)); 398if (!ListView.GroupsEnabled) 404ListView, 446if (ListView is not null && ListView.IsHandleCreated) 448ListView.UpdateGroupNative(this);
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (2)
25_owningListView = owningGroup.ListView 28: throw new InvalidOperationException(nameof(owningGroup.ListView)));
System\Windows\Forms\Controls\ListView\ListViewGroupImageIndexer.cs (1)
30get => _owner.ListView?.GroupImageList;
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (5)
22public bool OwnerIsVirtualListView => _group.ListView is not null && _group.ListView.VirtualMode; 24public bool OwnerIsDesignMode => _group.ListView?.Site is not null && _group.ListView.Site.DesignMode; 66if (item.ListView is not null && item.ListView != _group.ListView)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
251ListView owningListView = _listView ?? Group?.ListView
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
29_owningListView = owningItem.ListView ?? owningItem.Group?.ListView ?? throw new InvalidOperationException(nameof(owningItem.ListView));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
27_owningListView = owningItem.ListView ?? owningItem.Group?.ListView ?? throw new InvalidOperationException(nameof(owningItem.ListView));
System.Windows.Forms.Tests (36)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (1)
691Assert.Null(listViewGroup.ListView);
System\Windows\Forms\ListViewGroupCollectionTests.cs (31)
54Assert.Same(listView, group.ListView); 69Assert.Same(listView, group.ListView); 88Assert.Same(listView, group.ListView); 109Assert.Same(listView, group.ListView); 145Assert.Same(listView, group.ListView); 166Assert.Null(group.ListView); 375Assert.Same(listView, group1.ListView); 381Assert.Same(listView, group2.ListView); 394Assert.Same(listView, group1.ListView); 400Assert.Same(listView, group2.ListView); 417Assert.Same(listView, group.ListView); 436Assert.Same(listView, group1.ListView); 470Assert.Same(listView, group.ListView); 522Assert.Same(listView, group.ListView); 602Assert.Null(group.ListView); 607Assert.Null(group.ListView); 622Assert.Null(group.ListView); 627Assert.Null(group.ListView); 746Assert.Same(listView, group.ListView); 761Assert.Same(listView, group.ListView); 778Assert.Same(listView, group.ListView); 797Assert.Same(listView, group.ListView); 816Assert.Same(listView, group.ListView); 887Assert.Same(listView, group.ListView); 926Assert.Null(group.ListView); 931Assert.Null(group.ListView); 950Assert.Null(group.ListView); 955Assert.Null(group.ListView); 968Assert.Null(group.ListView); 973Assert.Null(group.ListView); 1016Assert.Null(group.ListView);
System\Windows\Forms\ListViewGroupTests.cs (4)
25Assert.Null(group.ListView); 46Assert.Null(group.ListView); 76Assert.Null(group.ListView); 104Assert.Null(group.ListView);