IVsDropdownBarClient::GetEntryText Method (Int32, Int32, String^)

 

Returns the text for a combo entry.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int GetEntryText(
	int iCombo,
	int iIndex,
	[OutAttribute] String^% ppszText
)

Parameters

iCombo
Type: System::Int32

[in] The drop-down bar/Window combo.

iIndex
Type: System::Int32

[in] Index of item of interest.

ppszText
Type: System::String^

[out] String containing the text.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From textmgr.idl:

HRESULT IVsDropdownBarClient::GetEntryText(
   [in] long iCombo,
   [in] long iIndex,
   [out] WCHAR **ppszText
);
System_CAPS_noteNote

The text buffer returned in ppszText is typically created by the IVsDropdownBarClient object and the buffer must persist for the life of the IVsDropdownBarClient object.

If you are implementing this interface in managed code and you need to have the string disposed of by the caller, implement the IVsCoTaskMemFreeMyStrings interface on the IVsDropdownBarClient interface.

Return to top
Show: