次の方法で共有


VsTextImageClass.GetTextBSTR(TextSpan[], String) Method

Definition

Returns the text of a text span as a BSTR

public:
 virtual int GetTextBSTR(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts, [Runtime::InteropServices::Out] System::String ^ % pbstrText) = Microsoft::VisualStudio::TextManager::Interop::IVsTextImage::GetTextBSTR;
public:
 virtual int GetTextBSTR(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts, [Runtime::InteropServices::Out] System::String ^ % pbstrText);
 virtual int GetTextBSTR(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pts, [Runtime::InteropServices::Out] std::wstring const & & pbstrText);
public virtual int GetTextBSTR (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pts, out string pbstrText);
abstract member GetTextBSTR : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * string -> int
override this.GetTextBSTR : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * string -> int
Public Overridable 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.

Implements

Applies to