18 references to IndexOf
System.Windows.Forms (18)
winforms\Managed\System\WinForms\ToolStrip.cs (8)
2041
int focusIndex = DisplayedItems.
IndexOf
(item);
2265
int current = DisplayedItems.
IndexOf
(start);
3044
startIndex = DisplayedItems.
IndexOf
(startingItem);
5453
if (owner.Items.
IndexOf
(droppedItem) < insertIndex) {
5516
return owner.Items.
IndexOf
(owner.DisplayedItems[i]);
5524
return owner.Items.
IndexOf
(owner.DisplayedItems[i - 1]);
5526
return owner.Items.
IndexOf
(owner.DisplayedItems[i]);
5529
return owner.Items.
IndexOf
(owner.DisplayedItems[owner.DisplayedItems.Count - 1]);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
948
int index = dropDown.Items.
IndexOf
(owner);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
530
int index = this.Items.
IndexOf
(nextItem);
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
2460
int index = ParentInternal.DisplayedItems.
IndexOf
(this);
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (3)
346
int IList.IndexOf(object value) { return
IndexOf
(value as ToolStripItem); }
505
int indexOfItem = value.ParentInternal.Items.
IndexOf
(value);
523
int indexOfItem = value.ParentInternal.Items.
IndexOf
(value);
winforms\Managed\System\WinForms\ToolStripManager.cs (4)
1989
int indexOfDestinationItem = destinationItems.
IndexOf
(item);
2001
maction.PreviousIndex = maction.PreviousIndexCollection.
IndexOf
(source);
2017
maction.PreviousIndex = maction.PreviousIndexCollection.
IndexOf
(source);
2030
maction.PreviousIndex = maction.PreviousIndexCollection.
IndexOf
(source);