共用方式為


ToolWindow.BitmapResource 屬性

當覆寫於衍生類別中,會取得工具視窗的名稱旁邊會出現在點陣圖的資源識別碼。

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

語法

'宣告
Protected Overridable ReadOnly Property BitmapResource As Integer
protected virtual int BitmapResource { get; }

屬性值

型別:System.Int32
點陣圖的資源 ID。

備註

點陣圖僅會在索引視窗。 點陣圖的資源識別碼必須符合您指定的點陣圖索引BitmapIndex屬性。

如果 -1 會傳回 [工具] 視窗會假設不使用任何點陣圖指定給它。

範例

下列範例會擷取係授與您想要用於工具視窗以索引標籤的圖示的點陣圖資源識別碼。

protected override int BitmapResource
{
     get { return 104; }
}

.NET Framework 安全性

請參閱

參考

ToolWindow 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間