Share via


Declarations.GetGlyph(Int32) Method

Definition

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

public:
 abstract int GetGlyph(int index);
public:
 abstract int GetGlyph(int index);
 abstract int GetGlyph(int index);
public abstract int GetGlyph (int index);
abstract member GetGlyph : int -> int
Public MustOverride Function GetGlyph (index As Integer) As Integer

Parameters

index
Int32

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

Returns

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.

Applies to