TypeAndMemberDropdownBars.GetEntryAttributes(Int32, Int32, UInt32) Method

Definition

Returns the font attributes for the specified entry on the specified combo box.

public:
 virtual int GetEntryAttributes(int combo, int entry, [Runtime::InteropServices::Out] System::UInt32 % fontAttrs);
 virtual int GetEntryAttributes(int combo, int entry, [Runtime::InteropServices::Out] unsigned int & fontAttrs);
public virtual int GetEntryAttributes (int combo, int entry, out uint fontAttrs);
abstract member GetEntryAttributes : int * int * uint32 -> int
override this.GetEntryAttributes : int * int * uint32 -> int
Public Overridable Function GetEntryAttributes (combo As Integer, entry As Integer, ByRef fontAttrs As UInteger) 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 attributes.

fontAttrs
UInt32

[out] Returns the collection of flags from the DROPDOWNFONTATTR enumeration for the requested entry.

Returns

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

Implements

Remarks

This method is an implementation of the GetEntryAttributes 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 font attributes from the entry; otherwise, FONTATTR_PLAIN is returned as the font attribute. The base method always returns a success code of S_OK.

Applies to