Partager via


ModelingToolboxItem Constructors

Definition

Overloads

ModelingToolboxItem(SerializationInfo, StreamingContext)

Serialization constructor.

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

Initializes a new instance of the ModelingToolboxItem class.

ModelingToolboxItem(SerializationInfo, StreamingContext)

Serialization constructor.

protected:
 ModelingToolboxItem(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ModelingToolboxItem (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The serialization information.

context
StreamingContext

The streaming context.

Applies to

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

Initializes a new instance of the ModelingToolboxItem class.

public:
 ModelingToolboxItem(System::String ^ id, int position, System::String ^ displayName, System::Drawing::Bitmap ^ bitmap, System::String ^ tabNameId, System::String ^ tabName, System::String ^ f1Keyword, System::String ^ tooltip, Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ prototype, System::Collections::ICollection ^ toolboxFilters);
public ModelingToolboxItem (string id, int position, string displayName, System.Drawing.Bitmap bitmap, string tabNameId, string tabName, string f1Keyword, string tooltip, Microsoft.VisualStudio.Modeling.ElementGroupPrototype prototype, System.Collections.ICollection toolboxFilters);
new Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem : string * int * string * System.Drawing.Bitmap * string * string * string * string * Microsoft.VisualStudio.Modeling.ElementGroupPrototype * System.Collections.ICollection -> Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem
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)

Parameters

id
String

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

position
Int32

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

displayName
String

Name displayed in the toolbox. Should be localized.

bitmap
Bitmap

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

tabNameId
String

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

tabName
String

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

f1Keyword
String

The F1 help keyword for this toolbox item

tooltip
String

The tooltip to be shown for this item

prototype
ElementGroupPrototype

The ElementGroupPrototype for this item

toolboxFilters
ICollection

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

Applies to