Compartir a través de


TypeAndMemberDropdownBars.GetEntryImage(Int32, Int32, Int32) Method

Definition

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

public:
 virtual int GetEntryImage(int combo, int entry, [Runtime::InteropServices::Out] int % imgIndex);
 virtual int GetEntryImage(int combo, int entry, [Runtime::InteropServices::Out] int & imgIndex);
public virtual int GetEntryImage (int combo, int entry, out int imgIndex);
abstract member GetEntryImage : int * int * int -> int
override this.GetEntryImage : int * int * int -> int
Public Overridable Function GetEntryImage (combo As Integer, entry As Integer, ByRef imgIndex As Integer) As Integer

Parameters

combo
Int32

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

entry
Int32

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

imgIndex
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.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Implements

Remarks

The image list the image index applies to is the <xref:Microsoft.CLRAdmin.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.

Applies to