IVsTextImage.GetTextBSTR(TextSpan[], String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the text of a text span as a BSTR
public:
int GetTextBSTR(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts, [Runtime::InteropServices::Out] System::String ^ % pbstrText);
int GetTextBSTR(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pts, [Runtime::InteropServices::Out] std::wstring const & & pbstrText);
public int GetTextBSTR (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pts, out string pbstrText);
abstract member GetTextBSTR : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * string -> int
Public Function GetTextBSTR (pts As TextSpan(), ByRef pbstrText As String) As Integer
Parameters
- pbstrText
- String
[out] Pointer to a BSTR containing the text.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsTextImage::GetTextBSTR(
[in] const TextSpan * pts,
[out, retval] BSTR * pbstrText
);