IVsTextImage.GetSpanLength(TextSpan[], Int32) Method

Definition

Return the number of characters in a text span.

C++/WinRT
int GetSpanLength(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pts, [Runtime::InteropServices::Out] int & pcch);

Parameters

pts
TextSpan[]

[in] Pointer to a TextSpan structure.

pcch
Int32

[out] Pointer to a character count of the text span.

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::GetSpanLength(  
   [in] const TextSpan * pts,  
   [out, retval] LONG * pcch  
);  

Applies to

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