64 references to ListView
System.Windows.Forms (31)
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (3)
97
if (Item.
ListView
is not null && Item.
ListView
.View == View.Details)
101
if (!Item.
ListView
.FullRowSelect && Item.SubItems.Count > 0)
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (1)
166
if (item?.
ListView
== _owner && item.Checked)
System\Windows\Forms\Controls\ListView\ListView.cs (3)
1737
if (value.
ListView
!= this)
4754
if (e.Item.
ListView
== this && IsAccessibilityObjectCreated)
5079
if (item.
ListView
== this)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (2)
26
?? (owningGroup.Items.Count > 0 && _owningGroup.Items[0].
ListView
is ListView listView
216
if (listViewItem.
ListView
is not null)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (3)
178
if (item.
ListView
is not null && item.
ListView
!= _listView)
271
if (item.
ListView
== _listView)
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (4)
60
if (context.Instance is ListViewItem item && item.
ListView
is not null)
62
foreach (ListViewGroup group in item.
ListView
.Groups)
115
if (context is not null && context.Instance is ListViewItem item && item.
ListView
is not null)
118
foreach (ListViewGroup group in item.
ListView
.Groups)
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (5)
66
if (item.
ListView
is not null && item.
ListView
!= _group.ListView)
125
if (item.
ListView
is not null && item.
ListView
.IsHandleCreated && !item.
ListView
.InsertingItemsNatively)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
869
ListView lv =
ListView
!;
959
return
ListView
?.FindNearestItem(searchDirection, xCenter, yCenter);
1147
foreach (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)
26
return _owningItem.
ListView
!.RectangleToScreen(imageRectangle);
34
internal override IRawElementProviderFragmentRoot.Interface? FragmentRoot => _owningItem.
ListView
?.AccessibilityObject;
54
internal 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)
28
Assert.Null(item.
ListView
);
67
Assert.Null(item.
ListView
);
105
Assert.Null(item.
ListView
);
143
Assert.Null(item.
ListView
);
181
Assert.Null(item.
ListView
);
218
Assert.Null(item.
ListView
);
255
Assert.Null(item.
ListView
);
293
Assert.Null(item.
ListView
);
331
Assert.Null(item.
ListView
);
368
Assert.Null(item.
ListView
);
406
Assert.Null(item.
ListView
);
444
Assert.Null(item.
ListView
);
481
Assert.Null(item.
ListView
);
519
Assert.Null(item.
ListView
);
557
Assert.Null(item.
ListView
);
595
Assert.Null(item.
ListView
);
632
Assert.Null(item.
ListView
);
670
Assert.Null(item.
ListView
);
708
Assert.Null(item.
ListView
);
745
Assert.Null(item.
ListView
);
784
Assert.Null(item.
ListView
);
814
Assert.Null(item.
ListView
);
1038
Assert.Null(item.
ListView
);
System\Windows\Forms\ListViewSubItemTests.cs (2)
34
Assert.Null(item.
ListView
);
60
Assert.Null(item.
ListView
);
System\Windows\Forms\ListViewTests.cs (8)
5569
Assert.Equal(listView, item.
ListView
);
5578
Assert.Null(item.
ListView
);
5629
Assert.Equal(listView, item.
ListView
);
5638
Assert.Null(item.
ListView
);
5703
Assert.Equal(listView, item.
ListView
);
5713
Assert.Equal(listView, item.
ListView
);
5776
Assert.Equal(listView, item.
ListView
);
5786
Assert.Equal(listView, item.
ListView
);