IVsTextImage::GetText Method (array<TextSpan>^, Int32, array<UInt16>^)

 

Return the text of a text span.

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

int GetText(
	array<TextSpan>^ pts,
	int cch,
	array<unsigned short>^ psz
)

Parameters

pts
Type: array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^

[in] Pointer to a TextSpan structure.

cch
Type: System::Int32

[in] Number of characters to return.

psz
Type: array<System::UInt16>^

[out] Pointer to a null terminated 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 IVsTextImage::GetText(
   [in] const TextSpan * pts,
   [in] LONG cch,
   [out, size_is(cch)] LPOLESTR psz
);
Return to top
Show: