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
- id
Type: System.String
The identifier for this toolbox item.
- 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.
- bitmap
Type: System.Drawing.Bitmap
The 8-bit bitmap that represents this toolbox item in the Toolbox.
- 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.
- prototype
Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
The information required to create an ElementGroup for this toolbox item.
- toolboxFilters
Type: System.Collections.ICollection
A collection of ToolboxItemFilterAttribute attributes to apply to 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.