ToolStripItemCollection.Find(String, Boolean) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.