共用方式為


ModelingToolboxItem 建構函式 (String, Int32, String, Bitmap, String, String, String, String, ElementGroupPrototype, ICollection)

這個類型具有 SecurityCriticalAttribute 屬性,因此僅供 .NET Framework for Silverlight 類別庫內部使用。如果應用程式程式碼使用這個類型的任何成員,都會擲回 MethodAccessException。

[安全性關鍵]

從指定的資訊,初始化 ModelingToolboxItem 類別的新執行個體。

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

語法

'宣告
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
)

參數

  • position
    類型:System.Int32
    所產生設計工具的 DSL 索引標籤上,這個工具箱項目的以零起始的索引。
  • displayName
    類型:System.String
    這個工具箱項目的已當地語系化的顯示名稱。
  • tabNameId
    類型:System.String
    這個工具箱項目所關聯的工具箱索引標籤的識別項。
    這個工具箱項目所關聯的工具箱索引標籤的識別項。
  • tabName
    類型:System.String
    這個工具箱項目所關聯的工具箱索引標籤的當地語系化名稱。
  • f1Keyword
    類型:System.String
    和這個工具箱項目關聯的說明主題的 F1 關鍵字。
  • tooltip
    類型:System.String
    這個工具箱項目的工具提示文字。

請參閱

參考

ModelingToolboxItem 類別

ModelingToolboxItem 多載

Microsoft.VisualStudio.Modeling.Design 命名空間