1 write to _owningListView
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
29
_owningListView
= owningItem.ListView ?? owningItem.Group?.ListView ?? throw new InvalidOperationException(nameof(owningItem.ListView));
68 references to _owningListView
System.Windows.Forms (68)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (25)
32
private protected ListViewGroup? OwningGroup =>
_owningListView
.GroupsDisplayed
33
? _owningItem.Group ??
_owningListView
.DefaultGroup
40
=> !
_owningListView
.IsHandleCreated || OwningGroup?.CollapsedState == ListViewGroupCollapsedState.Collapsed
43
_owningListView
.AccessibilityObject.Bounds.X + _owningItem.Bounds.X,
44
_owningListView
.AccessibilityObject.Bounds.Y + _owningItem.Bounds.Y,
53
internal override IRawElementProviderFragmentRoot.Interface FragmentRoot =>
_owningListView
.AccessibilityObject;
69
bool owningListViewFocused =
_owningListView
.Focused;
70
bool owningListItemFocused =
_owningListView
.FocusedItem == _owningItem;
76
=>
_owningListView
.CheckBoxes
86
if (
_owningListView
.SelectedIndices.Contains(_owningItem.Index))
91
return state |=
_owningListView
.AccessibilityObject.SystemIAccessible.TryGetState(GetChildId());
103
if (
_owningListView
.CheckBoxes)
120
if (
_owningListView
.CheckBoxes)
130
AccessibleObject parentInternal = OwningGroup?.AccessibilityObject ??
_owningListView
.AccessibilityObject;
151
if (
_owningListView
.View != View)
163
if (
_owningListView
.View != View)
182
return (VARIANT)
_owningListView
.Enabled;
206
int[] id =
_owningListView
.AccessibilityObject.RuntimeId;
244
UIA_PATTERN_ID.UIA_TogglePatternId =>
_owningListView
.CheckBoxes,
262
=>
_owningListView
.AccessibilityObject;
268
if (
_owningListView
.IsHandleCreated)
270
_owningListView
.SelectedIndices.Add(CurrentIndex);
271
PInvoke.InvalidateRect(
_owningListView
, lpRect: null, bErase: false);
286
if (!
_owningListView
.IsHandleCreated)
291
_owningListView
.AccessibilityObject.SystemIAccessible.TrySelect(flags, GetChildId());
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemDetailsAccessibleObject.cs (14)
23
private int LastChildIndex => HasImage ?
_owningListView
.Columns.Count :
_owningListView
.Columns.Count - 1;
33
?
_owningListView
.Columns[accessibleChildIndex - 1]._correspondingListViewSubItemIndex
34
:
_owningListView
.Columns[accessibleChildIndex]._correspondingListViewSubItemIndex;
46
if (
_owningListView
.View != View.Details)
53
return !
_owningListView
.SupportsListViewSubItems || accessibleChildIndex > LastChildIndex || accessibleChildIndex < 0
73
if (
_owningListView
.View != View.Details)
78
return !
_owningListView
.IsHandleCreated || !
_owningListView
.SupportsListViewSubItems
85
if (child is null || !
_owningListView
.SupportsListViewSubItems)
107
for (int i = 0; i <
_owningListView
.Columns.Count; i++)
109
if (
_owningListView
.Columns[i]._correspondingListViewSubItemIndex == subItemIndex)
178
=>
_owningListView
.IsHandleCreated
179
?
_owningListView
.GetSubItemRect(_owningItem.Index, HasImage ? accessibleChildIndex - 1 : accessibleChildIndex)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemListAccessibleObject.cs (4)
18
=> !
_owningListView
.IsHandleCreated
21
_owningListView
.AccessibilityObject.Bounds.X + _owningItem.Bounds.X,
22
_owningListView
.AccessibilityObject.Bounds.Y + _owningItem.Bounds.Y,
30
AccessibleObject _parentInternal =
_owningListView
.AccessibilityObject;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemTileAccessibleObject.cs (16)
21
=> _labelEditAccessibleObject ??=
_owningListView
._labelEdit is null
23
: new(
_owningListView
,
_owningListView
._labelEdit);
29
=>
_owningListView
._labelEdit is not null
40
if (
_owningListView
.View != View.Tile)
52
if (!
_owningListView
.SupportsListViewSubItems
54
||
_owningListView
.Columns.Count <= index
66
if (
_owningListView
.View != View.Tile)
71
if (!
_owningListView
.IsHandleCreated || !
_owningListView
.SupportsListViewSubItems)
78
return
_owningListView
._labelEdit is not null ? 1 : 0;
81
return
_owningListView
._labelEdit is not null ? GetLastChildIndex() + 1 : GetLastChildIndex();
87
|| !
_owningListView
.SupportsListViewSubItems
109
int subItemCount = Math.Min(
_owningListView
.Columns.Count, _owningItem.SubItems.Count);
125
=>
_owningListView
.IsHandleCreated
126
?
_owningListView
.GetSubItemRect(_owningItem.Index, subItemIndex)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemWithImageAccessibleObject.cs (9)
27
=> _labelEditAccessibleObject ??=
_owningListView
._labelEdit is null
29
: new(
_owningListView
,
_owningListView
._labelEdit);
48
if (
_owningListView
.View != View)
68
if (
_owningListView
.View != View)
73
if (!
_owningListView
.IsHandleCreated)
85
if (
_owningListView
._labelEdit is not null &&
_owningListView
._listViewSubItem is null)
99
=>
_owningListView
.IsHandleCreated && accessibleChildIndex == ImageAccessibleObjectIndex && HasImage