Udostępnij za pośrednictwem


TypeAndMemberDropdownBars.GetEntryText(Int32, Int32, String) Method

Definition

Returns the text to be displayed for the specified entry in the specified combo box.

public:
 virtual int GetEntryText(int combo, int entry, [Runtime::InteropServices::Out] System::String ^ % text);
 virtual int GetEntryText(int combo, int entry, [Runtime::InteropServices::Out] std::wstring const & & text);
public virtual int GetEntryText (int combo, int entry, out string text);
abstract member GetEntryText : int * int * string -> int
override this.GetEntryText : int * int * string -> int
Public Overridable Function GetEntryText (combo As Integer, entry As Integer, ByRef text As String) 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 text.

text
String

[out] Returns a string containing the text to be displayed in the combo box for the specified entry. Returns null if the entry does not exist.

Returns

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

Implements

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 null is returned. The base method always returns a success code of S_OK.

Applies to