ToolStripItemCollection.Find(String, Boolean) Méthode

Définition

Recherche les éléments par leur nom et retourne un tableau de tous les contrôles correspondants.

public:
 cli::array <System::Windows::Forms::ToolStripItem ^> ^ Find(System::String ^ key, bool searchAllChildren);
public System.Windows.Forms.ToolStripItem[] Find(string key, bool searchAllChildren);
member this.Find : string * bool -> System.Windows.Forms.ToolStripItem[]
Public Function Find (key As String, searchAllChildren As Boolean) As ToolStripItem()

Paramètres

key
String

Nom de l’élément ToolStripItemCollection à rechercher.

searchAllChildren
Boolean

true pour rechercher les éléments enfants du ToolStripItem paramètre spécifié key ; sinon, false.

Retours

Tableau ToolStripItem des résultats de la recherche.

Exceptions

Le key paramètre est null ou vide.

S’applique à