次の方法で共有


ModelingPackage.AddOrReplaceToolboxItem Method

Definition

Caution

Use AddToolboxItems instead

Add a toolbox item if it is not present. Will replace an existing toolbox item if the item is already present

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)

Parameters

toolbox
IToolboxService

the toolbox service

toolboxItem
ModelingToolboxItemBase

the new toolbox item

Attributes

Applies to