Udostępnij za pośrednictwem


IVsTextStorage.Storage_GetCharsInSpan(TextSpan[], Int32) Method

Definition

Gets the number of characters in the specified span.

public:
 int Storage_GetCharsInSpan(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpanToMeasure, [Runtime::InteropServices::Out] int % piChars);
int Storage_GetCharsInSpan(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pSpanToMeasure, [Runtime::InteropServices::Out] int & piChars);
public int Storage_GetCharsInSpan (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pSpanToMeasure, out int piChars);
abstract member Storage_GetCharsInSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * int -> int
Public Function Storage_GetCharsInSpan (pSpanToMeasure As TextSpan(), ByRef piChars As Integer) As Integer

Parameters

pSpanToMeasure
TextSpan[]

[in] The span within which to count the characters.

piChars
Int32

[out] The number of characters in the span.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextStorage::Storage_GetCharsInSpan(  
   [in] TextSpan *pSpanToMeasure,  
   [out] long *piChars  
);  

Applies to