IVsTextImage.GetText(TextSpan[], Int32, UInt16[]) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
C++/CX
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
- cch
- Int32
[in] Number of characters to return.
- psz
- UInt16[]
[out] Pointer to a null terminated string containing the text.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
cpp#
HRESULT IVsTextImage::GetText(
[in] const TextSpan * pts,
[in] LONG cch,
[out, size_is(cch)] LPOLESTR psz
);
Produkt | Versiounen |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |