Share via


Declarations.GetGlyph Method

When implemented in a derived class, gets the image to show next to the specified item.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public MustOverride Function GetGlyph ( _
    index As Integer _
) As Integer
public abstract int GetGlyph(
    int index
)
public:
virtual int GetGlyph(
    int index
) abstract
abstract GetGlyph : 
        index:int -> int
public abstract function GetGlyph(
    index : int
) : int

Parameters

  • index
    Type: Int32

    [in] The index of the item for which to get the image index.

Return Value

Type: Int32
The index of the image from an image list, otherwise -1.

Remarks

The image to be shown typically indicates a type for the associated item. For example, an image could indicate the item is a method, a variable, or an event handler.

The image index is used on the image list that was supplied to the CompletionSet object and typically is the same image list that is returned from the GetImageList method in the LanguageService class.

.NET Framework Security

See Also

Reference

Declarations Class

Microsoft.VisualStudio.Package Namespace