This topic has not yet been rated - Rate this topic

IVsTextImage.GetTextBSTR Method

Return the text of a text span as a BSTR

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int GetTextBSTR(
	TextSpan[] pts,
	out string pbstrText
)

Parameters

pts
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan[]

[in] Pointer to a TextSpan structure.

pbstrText
Type: String

[out] Pointer to a BSTR containing the text.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From textmgr.idl:

HRESULT IVsTextImage::GetTextBSTR(
   [in] const TextSpan * pts,
   [out, retval] BSTR * pbstrText
);
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.