TypeAndMemberDropdownBars.GetEntryImage Method

Returns the glyph index for the specified entry on the specified combo box.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   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 Overridable Function GetEntryImage ( _
    combo As Integer, _
    entry As Integer, _
    <OutAttribute> ByRef imgIndex As Integer _
) As Integer
public virtual int GetEntryImage(
    int combo,
    int entry,
    out int imgIndex
)
public:
virtual int GetEntryImage(
    int combo, 
    int entry, 
    [OutAttribute] int% imgIndex
)
abstract GetEntryImage : 
        combo:int * 
        entry:int * 
        imgIndex:int byref -> int  
override GetEntryImage : 
        combo:int * 
        entry:int * 
        imgIndex:int byref -> int
public function GetEntryImage(
    combo : int, 
    entry : int, 
    imgIndex : int
) : int

Parameters

  • combo
    Type: System.Int32

    [in] The ID of the combo box (0 for the types combo box, 1 for the members combo box).

  • entry
    Type: System.Int32

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

  • imgIndex
    Type: System.Int32%

    [out] Returns the index in the image list to the glyph for the specified entry. Returns -1 if there is no glyph or the entry does not exist.

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsDropdownBarClient.GetEntryImage(Int32, Int32, Int32%)

Remarks

The image list the image index applies to is the IImageList object passed to the TypeAndMemberDropdownBars class constructor.

This method is an implementation of the GetEntryImage method on the IVsDropdownBarClient interface.

The base method calls the GetMember method to retrieve the requested entry. If the entry is found, the base method returns the image index from the entry; otherwise, a -1 is returned. The base method always returns a success code of S_OK.

.NET Framework Security

See Also

Reference

TypeAndMemberDropdownBars Class

Microsoft.VisualStudio.Package Namespace