Share via


IVsTextImage.GetText(TextSpan[], Int32, UInt16[]) Method

Definition

Return the text of a text span.

public:
 int GetText(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts, int cch, cli::array <System::UInt16> ^ psz);
public:
 int GetText(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts, int cch, Platform::Array <unsigned short> ^ psz);
int GetText(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pts, int cch, std::Array <unsigned short> const & psz);
public int GetText (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pts, int cch, ushort[] psz);
abstract member GetText : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * int * uint16[] -> int
Public Function GetText (pts As TextSpan(), cch As Integer, psz As UShort()) As Integer

Parameters

pts
TextSpan[]

[in] Pointer to a TextSpan structure.

cch
Int32

[in] Number of characters to return.

psz
UInt16[]

[out] Pointer to a null terminated string 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::GetText(  
   [in] const TextSpan * pts,  
   [in] LONG cch,  
   [out, size_is(cch)] LPOLESTR psz  
);  

Applies to