28 references to InvalidIndex
System.Windows.Forms (28)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
379
internal virtual int GetChildIndex(AccessibleObject? child) =>
InvalidIndex
;
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (6)
110
return
InvalidIndex
;
122
return
InvalidIndex
;
128
return index < owningListView.Items.Count ? index :
InvalidIndex
;
131
return
InvalidIndex
;
138
return
InvalidIndex
;
150
return
InvalidIndex
;
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (4)
238
return childIndex ==
InvalidIndex
274
return
InvalidIndex
;
286
return
InvalidIndex
;
293
return
InvalidIndex
;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (3)
138
return childIndex ==
InvalidIndex
? null : parentInternal.GetChild(childIndex + 1);
168
return
InvalidIndex
;
171
internal override int GetChildIndex(AccessibleObject? child) =>
InvalidIndex
;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemDetailsAccessibleObject.cs (4)
87
return
InvalidIndex
;
97
return
InvalidIndex
;
106
int accessibleChildIndex =
InvalidIndex
;
116
return accessibleChildIndex > LastChildIndex ?
InvalidIndex
: accessibleChildIndex;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemListAccessibleObject.cs (1)
38
return childIndex ==
InvalidIndex
? null : _parentInternal.GetChild(childIndex + 1);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemTileAccessibleObject.cs (4)
73
return
InvalidIndex
;
92
return
InvalidIndex
;
96
return index == -1 || index > GetLastChildIndex() ?
InvalidIndex
: index;
105
return
InvalidIndex
;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemWithImageAccessibleObject.cs (3)
75
return
InvalidIndex
;
90
return _childCount > 0 ? _childCount :
InvalidIndex
;
96
:
InvalidIndex
;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (2)
37
if (index ==
InvalidIndex
)
87
:
InvalidIndex
;