Declarations.GetGlyph Method (Int32)

 

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

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public abstract int GetGlyph(
	int index
)

Parameters

index
Type: System.Int32

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

Return Value

Type: System.Int32

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

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.

Return to top
Show: