当在派生类中重写时,获取出现在工具窗口名称旁边的位图的资源 ID。
命名空间: Microsoft.VisualStudio.Modeling.Shell
程序集: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。