TypeAndMemberDropdownBars::GetEntryAttributes Method (Int32, Int32, UInt32)

 

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

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

public:
virtual int GetEntryAttributes(
	int combo,
	int entry,
	[OutAttribute] unsigned int% fontAttrs
)

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

fontAttrs
Type: System::UInt32

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: