64 references to ListView
System.Windows.Forms (31)
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (3)
97if (Item.ListView is not null && Item.ListView.View == View.Details) 101if (!Item.ListView.FullRowSelect && Item.SubItems.Count > 0)
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (1)
166if (item?.ListView == _owner && item.Checked)
System\Windows\Forms\Controls\ListView\ListView.cs (3)
1737if (value.ListView != this) 4750if (e.Item.ListView == this && IsAccessibilityObjectCreated) 5075if (item.ListView == this)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (2)
26?? (owningGroup.Items.Count > 0 && _owningGroup.Items[0].ListView is ListView listView 216if (listViewItem.ListView is not null)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (3)
178if (item.ListView is not null && item.ListView != _listView) 271if (item.ListView == _listView)
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (4)
60if (context.Instance is ListViewItem item && item.ListView is not null) 62foreach (ListViewGroup group in item.ListView.Groups) 115if (context is not null && context.Instance is ListViewItem item && item.ListView is not null) 118foreach (ListViewGroup group in item.ListView.Groups)
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (5)
66if (item.ListView is not null && item.ListView != _group.ListView) 125if (item.ListView is not null && item.ListView.IsHandleCreated && !item.ListView.InsertingItemsNatively)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
869ListView lv = ListView!; 959return ListView?.FindNearestItem(searchDirection, xCenter, yCenter); 1147foreach (ListViewGroup lvg in ListView!.Groups)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
29_owningListView = owningItem.ListView ?? owningItem.Group?.ListView ?? throw new InvalidOperationException(nameof(owningItem.ListView));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemImageAccessibleObject.cs (3)
26return _owningItem.ListView!.RectangleToScreen(imageRectangle); 34internal override IRawElementProviderFragmentRoot.Interface? FragmentRoot => _owningItem.ListView?.AccessibilityObject; 54internal Rectangle GetImageRectangle() => _owningItem.ListView!.GetItemRect(_owningItem.Index, ItemBoundsPortion.Icon);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (2)
27_owningListView = owningItem.ListView ?? owningItem.Group?.ListView ?? throw new InvalidOperationException(nameof(owningItem.ListView));
System.Windows.Forms.Tests (33)
System\Windows\Forms\ListViewItemTests.cs (23)
28Assert.Null(item.ListView); 67Assert.Null(item.ListView); 105Assert.Null(item.ListView); 143Assert.Null(item.ListView); 181Assert.Null(item.ListView); 218Assert.Null(item.ListView); 255Assert.Null(item.ListView); 293Assert.Null(item.ListView); 331Assert.Null(item.ListView); 368Assert.Null(item.ListView); 406Assert.Null(item.ListView); 444Assert.Null(item.ListView); 481Assert.Null(item.ListView); 519Assert.Null(item.ListView); 557Assert.Null(item.ListView); 595Assert.Null(item.ListView); 632Assert.Null(item.ListView); 670Assert.Null(item.ListView); 708Assert.Null(item.ListView); 745Assert.Null(item.ListView); 784Assert.Null(item.ListView); 814Assert.Null(item.ListView); 1038Assert.Null(item.ListView);
System\Windows\Forms\ListViewSubItemTests.cs (2)
35Assert.Null(item.ListView); 61Assert.Null(item.ListView);
System\Windows\Forms\ListViewTests.cs (8)
5569Assert.Equal(listView, item.ListView); 5578Assert.Null(item.ListView); 5629Assert.Equal(listView, item.ListView); 5638Assert.Null(item.ListView); 5703Assert.Equal(listView, item.ListView); 5713Assert.Equal(listView, item.ListView); 5776Assert.Equal(listView, item.ListView); 5786Assert.Equal(listView, item.ListView);