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