Share via


ModelingToolboxItemBase Constructor (String, Int32, String, Bitmap, String, String, String, String, ICollection)

This type has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses any member of this type throws a MethodAccessException.

[SECURITY CRITICAL]

Initializes a new instance of the ModelingToolboxItemBase class.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
Protected Sub New ( _
    id As String, _
    position As Integer, _
    displayName As String, _
    bitmap As Bitmap, _
    tabNameId As String, _
    tabName As String, _
    f1Keyword As String, _
    tooltip As String, _
    toolboxFilters As ICollection _
)
protected ModelingToolboxItemBase(
    string id,
    int position,
    string displayName,
    Bitmap bitmap,
    string tabNameId,
    string tabName,
    string f1Keyword,
    string tooltip,
    ICollection toolboxFilters
)
protected:
ModelingToolboxItemBase(
    String^ id, 
    int position, 
    String^ displayName, 
    Bitmap^ bitmap, 
    String^ tabNameId, 
    String^ tabName, 
    String^ f1Keyword, 
    String^ tooltip, 
    ICollection^ toolboxFilters
)
new : 
        id:string * 
        position:int * 
        displayName:string * 
        bitmap:Bitmap * 
        tabNameId:string * 
        tabName:string * 
        f1Keyword:string * 
        tooltip:string * 
        toolboxFilters:ICollection -> ModelingToolboxItemBase
protected function ModelingToolboxItemBase(
    id : String, 
    position : int, 
    displayName : String, 
    bitmap : Bitmap, 
    tabNameId : String, 
    tabName : String, 
    f1Keyword : String, 
    tooltip : String, 
    toolboxFilters : ICollection
)

Parameters

  • id
    Type: String

    A string used to uniquely identify this toolbox item and prevent duplicates.

  • position
    Type: Int32

    An integer used to sort and position the toolbox item in the tab (0 is top).

  • displayName
    Type: String

    Name displayed in the toolbox. Should be localized.

  • bitmap
    Type: Bitmap

    Bitmap displayed in toolbox. Must be an 8-bit image.

  • tabNameId
    Type: String

    Non-localized Name id of the tab to contain this toolbox item. Should be localized.

  • tabName
    Type: String

    Name of the tab to contain this toolbox item. Should be localized.

  • f1Keyword
    Type: String

    The F1 help keyword for this toolbox item

  • tooltip
    Type: String

    The tooltip to be shown for this item

  • toolboxFilters
    Type: ICollection

    Collection of ToolboxItemFilterAttributes to determine enabled/disabled state of items in the toolbox.

See Also

Reference

ModelingToolboxItemBase Class

ModelingToolboxItemBase Overload

Microsoft.VisualStudio.Modeling.Design Namespace