Share via


ComponentDocumentDesigner.GetToolSupported(ToolboxItem) Méthode

Définition

Important

Cette API n’est pas conforme CLS.

Obtient une valeur indiquant si l'outil spécifié est pris en charge par le concepteur.

protected:
 virtual bool GetToolSupported(System::Drawing::Design::ToolboxItem ^ tool);
protected virtual bool GetToolSupported (System.Drawing.Design.ToolboxItem tool);
[System.CLSCompliant(false)]
protected virtual bool GetToolSupported (System.Drawing.Design.ToolboxItem tool);
abstract member GetToolSupported : System.Drawing.Design.ToolboxItem -> bool
override this.GetToolSupported : System.Drawing.Design.ToolboxItem -> bool
[<System.CLSCompliant(false)>]
abstract member GetToolSupported : System.Drawing.Design.ToolboxItem -> bool
override this.GetToolSupported : System.Drawing.Design.ToolboxItem -> bool
Protected Overridable Function GetToolSupported (tool As ToolboxItem) As Boolean

Paramètres

tool
ToolboxItem

ToolboxItem dont la prise en charge pour la boîte à outils est à vérifier.

Retours

Boolean

true si l'outil doit être activé dans la boîte à outils ; false si le Concepteur de documents n'est pas capable d'utiliser l'outil.

Attributs

Remarques

Si un outil est pris en charge, il est activé dans la boîte à outils lorsque le concepteur reprend le focus. Sinon, elle sera désactivée. Une fois qu’un outil est marqué comme activé ou désactivé, il ne peut pas être interrogé à nouveau.

S’applique à

Voir aussi