在派生类中实现时,获取图像在指定的项旁边显示。
命名空间: Microsoft.VisualStudio.Package
程序集: Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService(在 Microsoft.VisualStudio.Package.LanguageService.dll 中)
Microsoft.VisualStudio.Package.LanguageService.11.0(在 Microsoft.VisualStudio.Package.LanguageService.11.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.10.0(在 Microsoft.VisualStudio.Package.LanguageService.10.0.dll 中)
语法
声明
Public MustOverride Function GetGlyph ( _
index As Integer _
) As Integer
public abstract int GetGlyph(
int index
)
参数
- index
类型:System.Int32
[in] 项索引访问图像索引。
返回值
类型:System.Int32
图像的索引从图像的列表; 否则为 -1。
备注
通常将数据显示的图像来关联的项目的类型。例如,图像可能指示项目是方法、变量或事件处理程序。
图像索引在提供给 CompletionSet 对象并且通常是同一图像列表中 LanguageService 类的 GetImageList 方法返回的图像使用列表。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。