ComponentTray.CreateComponentFromTool(ToolboxItem) 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.
Crée un composant à partir de l’élément de boîte à outils spécifié, ajoute le composant au document actif et affiche une représentation du composant dans la barre d’état du composant.
public:
void CreateComponentFromTool(System::Drawing::Design::ToolboxItem ^ tool);
public void CreateComponentFromTool(System.Drawing.Design.ToolboxItem tool);
member this.CreateComponentFromTool : System.Drawing.Design.ToolboxItem -> unit
Public Sub CreateComponentFromTool (tool As ToolboxItem)
Paramètres
- tool
- ToolboxItem
ToolboxItem À partir duquel créer un composant.
Remarques
Cette méthode vérifie si l’élément est approprié DesignTimeVisibleAttribute avant de tenter de créer le composant et de l’ajouter à la barre d’état du composant.