共用方式為


ModelingPackage.AddToolboxItems 方法

將傳遞的 ModelingToolboxItemBase 項目集合加入至 Visual Studio 工具箱中。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)

語法

'宣告
Protected Sub AddToolboxItems ( _
    items As IEnumerable(Of ModelingToolboxItemBase) _
)
protected void AddToolboxItems(
    IEnumerable<ModelingToolboxItemBase> items
)

參數

.NET Framework 安全性

請參閱

參考

ModelingPackage 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間