IVsTextImage::GetText Method (array<TextSpan>^, Int32, array<UInt16>^)
Visual Studio 2015
Return the text of a text span.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
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::Int32If 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 );
Show: