Sdílet prostřednictvím


AsyncModelingPackage.AddOrReplaceToolboxItem Metoda

Definice

Upozornění

Use AddToolboxItems instead

Přidejte položku panelu nástrojů, pokud není k dispozici. Nahradí existující položku panelu nástrojů, pokud už je k dispozici.

public:
 static void AddOrReplaceToolboxItem(System::Drawing::Design::IToolboxService ^ toolbox, Microsoft::VisualStudio::Modeling::Design::ModelingToolboxItemBase ^ toolboxItem);
[System.Obsolete("Use AddToolboxItems instead")]
public static void AddOrReplaceToolboxItem (System.Drawing.Design.IToolboxService toolbox, Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItemBase toolboxItem);
[<System.Obsolete("Use AddToolboxItems instead")>]
static member AddOrReplaceToolboxItem : System.Drawing.Design.IToolboxService * Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItemBase -> unit
Public Shared Sub AddOrReplaceToolboxItem (toolbox As IToolboxService, toolboxItem As ModelingToolboxItemBase)

Parametry

toolbox
IToolboxService

služba sady nástrojů

toolboxItem
ModelingToolboxItemBase

the new toolbox item

Atributy

Platí pro