IVsCompletionSetBuilder::GetBuilderDisplayText Method (Int32, String^, array<Int32>^)

 

Gets the builder’s display text.

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

int GetBuilderDisplayText(
	int iIndex,
	[OutAttribute] String^% pbstrText,
	array<int>^ piGlyph
)

Parameters

iIndex
Type: System::Int32

[in] The index of the completion set.

pbstrText
Type: System::String^

[in] The display text.

piGlyph
Type: array<System::Int32>^

[out, optional] A glyph for the display text.

Return Value

Type: System::Int32

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

From textmgr2.idl:

HRESULT IVsCompletionSetBuilder::GetBuilderDisplayText(
   [in] long iIndex,
   [out] const WCHAR **ppszText,
   [out, optional] long *piGlyph
);
System_CAPS_noteNote

The text buffer is created by the IVsCompletionSetBuilder object and the buffer must persist for the life of the IVsCompletionSetBuilder object or until the OnBuilderCommit method is called.

Return to top
Show: