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

Definition

Return the text of a text span.

C++/CX
public:
 int GetText(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts, int cch, Platform::Array <unsigned short> ^ psz);

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:

cpp#
HRESULT IVsTextImage::GetText(  
   [in] const TextSpan * pts,  
   [in] LONG cch,  
   [out, size_is(cch)] LPOLESTR psz  
);  

Applies to

Produkt Versiounen
Visual Studio SDK 2015, 2017, 2019, 2022