ToolWindow.BitmapIndex 属性

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

命名空间:  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 安全性

请参见

参考

ToolWindow 类

Microsoft.VisualStudio.Modeling.Shell 命名空间