IVsTextImage.GetSpanLength(TextSpan[], Int32) 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 number of characters in a text span.
public:
int GetSpanLength(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts, [Runtime::InteropServices::Out] int % pcch);
C++/WinRT
int GetSpanLength(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pts, [Runtime::InteropServices::Out] int & pcch);
public int GetSpanLength(Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pts, out int pcch);
abstract member GetSpanLength : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * int -> int
Public Function GetSpanLength (pts As TextSpan(), ByRef pcch As Integer) As Integer
- pcch
- Int32
[out] Pointer to a character count of the text span.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
cpp#
HRESULT IVsTextImage::GetSpanLength(
[in] const TextSpan * pts,
[out, retval] LONG * pcch
);
Produkt | Versiounen |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |