4 references to Contains
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
338inDisplayedItemCollection = DisplayedItems.Contains(item); 348if (itemCount != DisplayedItems.Count || (item is not null && (inDisplayedItemCollection != DisplayedItems.Contains(item))))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
2062if (ParentInternal is not null && ParentInternal.Items.Contains(this) && ParentInternal.AllowItemReorder) 2099Debug.Assert(Owner.Items.Contains(this), "How can there be a owner and not be in the collection?");