Condividi tramite


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

Definition

Returns the text of a text span.

public:
 virtual int GetText(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts, int cch, cli::array <System::UInt16> ^ psz) = Microsoft::VisualStudio::TextManager::Interop::IVsTextImage::GetText;
public:
 virtual int GetText(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts, int cch, cli::array <System::UInt16> ^ psz);
public:
 virtual int GetText(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts, int cch, Platform::Array <unsigned short> ^ psz) = Microsoft::VisualStudio::TextManager::Interop::IVsTextImage::GetText;
 virtual int GetText(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pts, int cch, std::Array <unsigned short> const & psz);
public virtual int GetText (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pts, int cch, ushort[] psz);
abstract member GetText : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * int * uint16[] -> int
override this.GetText : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * int * uint16[] -> int
Public Overridable 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.

Implements

Applies to