ToolWindow.BitmapIndex 属性

当在派生类中重写时,获取出现在工具窗口名称旁边的位图索引。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.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 安全性

请参阅

参考

ToolWindow 类

Microsoft.VisualStudio.Modeling.Shell 命名空间