ToolWindow.BitmapIndex 屬性
當覆寫於衍生類別中,會取得工具視窗的名稱旁邊會出現在點陣圖的索引。
命名空間: Microsoft.VisualStudio.Modeling.Shell
組件: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)
語法
'宣告
Protected Overridable ReadOnly Property BitmapIndex As Integer
protected virtual int BitmapIndex { get; }
屬性值
型別:System.Int32
點陣圖的索引。
備註
點陣圖僅會在索引視窗。 點陣圖的索引必須符合您指定的點陣圖的資源 ID、 BitmapResource屬性。
範例
下列範例會擷取係授與您想要使用您的工具視窗索引標籤上的圖示以點陣圖的索引。
protected override int BitmapIndex
{
get { return 0; }
}
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。