IVsTextImage::GetTextBSTR Method (array<TextSpan>^, String^)
Visual Studio 2015
Return the text of a text span as a BSTR
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.
- pbstrText
-
Type:
System::String^
[out] Pointer to a BSTR 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::GetTextBSTR( [in] const TextSpan * pts, [out, retval] BSTR * pbstrText );
Show: