Partager via


VsTextLineStorageClass.Storage_GetCharsInSpan(TextSpan[], Int32) Method

Definition

Gets the number of characters in the specified span.

public:
 virtual int Storage_GetCharsInSpan(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpanToMeasure, [Runtime::InteropServices::Out] int % piChars) = Microsoft::VisualStudio::TextManager::Interop::IVsTextStorage::Storage_GetCharsInSpan;
public:
 virtual int Storage_GetCharsInSpan(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpanToMeasure, [Runtime::InteropServices::Out] int % piChars);
 virtual int Storage_GetCharsInSpan(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pSpanToMeasure, [Runtime::InteropServices::Out] int & piChars);
public virtual int Storage_GetCharsInSpan (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pSpanToMeasure, out int piChars);
abstract member Storage_GetCharsInSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * int -> int
override this.Storage_GetCharsInSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * int -> int
Public Overridable 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.

Implements

Applies to