次の方法で共有


TypeAndMemberDropdownBars.GetEntryText Method

Returns the text to be displayed for the specified entry in 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 GetEntryText ( _
    combo As Integer, _
    entry As Integer, _
    <OutAttribute> ByRef text As String _
) As Integer
'使用
Dim instance As TypeAndMemberDropdownBars
Dim combo As Integer
Dim entry As Integer
Dim text As String
Dim returnValue As Integer

returnValue = instance.GetEntryText(combo, _
    entry, text)
public virtual int GetEntryText(
    int combo,
    int entry,
    out string text
)
public:
virtual int GetEntryText(
    int combo, 
    int entry, 
    [OutAttribute] String^% text
)
abstract GetEntryText : 
        combo:int * 
        entry:int * 
        text:string byref -> int 
override GetEntryText : 
        combo:int * 
        entry:int * 
        text:string byref -> int 
public function GetEntryText(
    combo : int, 
    entry : int, 
    text : String
) : 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 text.
  • text
    Type: System.String%
    [out] Returns a string containing the text to be displayed in the combo box for the specified entry. Returns nulla null reference (Nothing in Visual Basic) if the entry does not exist.

Return Value

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

Implements

IVsDropdownBarClient.GetEntryText(Int32, Int32, String%)

Remarks

This method is an implementation of the GetEntryText 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 text from the entry; otherwise, a nulla null reference (Nothing in Visual Basic) is returned. 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