次の方法で共有


ModelingToolboxItem Constructor (String, Int32, String, Bitmap, String, String, String, String, ElementGroupPrototype, ICollection)

Initializes a new instance of the ModelingToolboxItem class from the specified information.

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

Syntax

'宣言
Public 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, _
    prototype As ElementGroupPrototype, _
    toolboxFilters As ICollection _
)
public ModelingToolboxItem(
    string id,
    int position,
    string displayName,
    Bitmap bitmap,
    string tabNameId,
    string tabName,
    string f1Keyword,
    string tooltip,
    ElementGroupPrototype prototype,
    ICollection toolboxFilters
)
public:
ModelingToolboxItem(
    String^ id, 
    int position, 
    String^ displayName, 
    Bitmap^ bitmap, 
    String^ tabNameId, 
    String^ tabName, 
    String^ f1Keyword, 
    String^ tooltip, 
    ElementGroupPrototype^ prototype, 
    ICollection^ toolboxFilters
)
new : 
        id:string * 
        position:int * 
        displayName:string * 
        bitmap:Bitmap * 
        tabNameId:string * 
        tabName:string * 
        f1Keyword:string * 
        tooltip:string * 
        prototype:ElementGroupPrototype * 
        toolboxFilters:ICollection -> ModelingToolboxItem
public function ModelingToolboxItem(
    id : String, 
    position : int, 
    displayName : String, 
    bitmap : Bitmap, 
    tabNameId : String, 
    tabName : String, 
    f1Keyword : String, 
    tooltip : String, 
    prototype : ElementGroupPrototype, 
    toolboxFilters : ICollection
)

Parameters

  • position
    Type: System.Int32
    The zero-based index of this toolbox item on the DSL tab in the generated designer.
  • displayName
    Type: System.String
    The localized display name for this toolbox item.
  • tabNameId
    Type: System.String
    The identifier for the Toolbox tab with which this toolbox item is associated.
    The identifier for the Toolbox tab with which this toolbox item is associated.
  • tabName
    Type: System.String
    The localized name of the Toolbox tab with which this toolbox item is associated.
  • f1Keyword
    Type: System.String
    The F1 keyword for the Help topic associated with this toolbox item.
  • tooltip
    Type: System.String
    The tooltip text for this toolbox item.

Exceptions

Exception Condition
ArgumentNullException

id, displayName, bitmap, tabName, or f1Keyword is nulla null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

position is less than zero (0).

.NET Framework Security

See Also

Reference

ModelingToolboxItem Class

ModelingToolboxItem Overload

Microsoft.VisualStudio.Modeling.Design Namespace