다음을 통해 공유


TypeAndMemberDropdownBars.GetEntryAttributes Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

‘선언
Public Overridable Function GetEntryAttributes ( _
    combo As Integer, _
    entry As Integer, _
    <OutAttribute> ByRef fontAttrs As UInteger _
) As Integer
‘사용 방법
Dim instance As TypeAndMemberDropdownBars
Dim combo As Integer
Dim entry As Integer
Dim fontAttrs As UInteger
Dim returnValue As Integer

returnValue = instance.GetEntryAttributes(combo, _
    entry, fontAttrs)
public virtual int GetEntryAttributes(
    int combo,
    int entry,
    out uint fontAttrs
)
public:
virtual int GetEntryAttributes(
    int combo, 
    int entry, 
    [OutAttribute] unsigned int% fontAttrs
)
abstract GetEntryAttributes : 
        combo:int * 
        entry:int * 
        fontAttrs:uint32 byref -> int 
override GetEntryAttributes : 
        combo:int * 
        entry:int * 
        fontAttrs:uint32 byref -> int 
public function GetEntryAttributes(
    combo : int, 
    entry : int, 
    fontAttrs : uint
) : 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 attributes.

Return Value

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

Implements

IVsDropdownBarClient.GetEntryAttributes(Int32, Int32, UInt32%)

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.

.NET Framework Security

See Also

Reference

TypeAndMemberDropdownBars Class

TypeAndMemberDropdownBars Members

Microsoft.VisualStudio.Package Namespace