9 references to Find
System.Windows.Forms.Tests (9)
System\Windows\Forms\ControlTests.ControlCollection.cs (8)
1471Assert.Equal([child2, child3, grandchild2, grandchild3], collection.Find(key, searchAllChildren: true)); 1474Assert.Equal([child2, child3, grandchild2, grandchild3], collection.Find(key, searchAllChildren: true)); 1477Assert.Equal([child2, child3], collection.Find(key, searchAllChildren: false)); 1480Assert.Equal([child2, child3], collection.Find(key, searchAllChildren: false)); 1508Assert.Empty(collection.Find(key, searchAllChildren: true)); 1509Assert.Empty(collection.Find(key, searchAllChildren: false)); 1518Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: true)); 1519Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: false));
System\Windows\Forms\LayoutEventArgsTests.cs (1)
76using (Panel panel = (Panel)tableLayoutPanel.Controls.Find("Panel", false).First())