ToolWindow.BitmapResource 属性

当 overriden 在派生类时,获取在工具窗口的名称旁边是否显示位图的资源 ID。

命名空间:  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。

备注

位图为选项卡式窗口仅显示。位图的资源 ID 必须匹配的位图索引,指定带有 BitmapIndex 属性。

如果 -1 返回,工具窗口假定位图未指派给它。

示例

下面的示例检索分配给位图要用作在选项卡上的图标。工具窗口的资源 ID。

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

.NET Framework 安全性

请参见

参考

ToolWindow 类

Microsoft.VisualStudio.Modeling.Shell 命名空间