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
)
參數
- id
類型:System.String
這個工具箱項目的識別項。
- position
類型:System.Int32
所產生設計工具的 DSL 索引標籤上,這個工具箱項目的以零起始的索引。
- displayName
類型:System.String
這個工具箱項目的已當地語系化的顯示名稱。
- bitmap
類型:System.Drawing.Bitmap
表示工具箱中這個工具箱項目的 8 位元點陣圖。
- tabNameId
類型:System.String
這個工具箱項目所關聯的工具箱索引標籤的識別項。
這個工具箱項目所關聯的工具箱索引標籤的識別項。
- tabName
類型:System.String
這個工具箱項目所關聯的工具箱索引標籤的當地語系化名稱。
- f1Keyword
類型:System.String
和這個工具箱項目關聯的說明主題的 F1 關鍵字。
- tooltip
類型:System.String
這個工具箱項目的工具提示文字。
- prototype
類型:Microsoft.VisualStudio.Modeling.ElementGroupPrototype
針對這個工具箱項目建立 ElementGroup 時所需的資訊。
- toolboxFilters
類型:System.Collections.ICollection
要套用至此工具箱項目之 ToolboxItemFilterAttribute 屬性的集合。