Condividi tramite


IVsTextImage.GetTextBSTR(TextSpan[], String) Method

Definition

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

pts
TextSpan[]

[in] Pointer to a TextSpan structure.

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  
);  

Applies to