9 references to Find
System.Windows.Forms.Tests (9)
System\Windows\Forms\ControlTests.ControlCollection.cs (8)
1469Assert.Equal([child2, child3, grandchild2, grandchild3], collection.Find(key, searchAllChildren: true)); 1472Assert.Equal([child2, child3, grandchild2, grandchild3], collection.Find(key, searchAllChildren: true)); 1475Assert.Equal([child2, child3], collection.Find(key, searchAllChildren: false)); 1478Assert.Equal([child2, child3], collection.Find(key, searchAllChildren: false)); 1506Assert.Empty(collection.Find(key, searchAllChildren: true)); 1507Assert.Empty(collection.Find(key, searchAllChildren: false)); 1516Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: true)); 1517Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: false));
System\Windows\Forms\LayoutEventArgsTests.cs (1)
74using (Panel panel = (Panel)tableLayoutPanel.Controls.Find("Panel", false).First())