IVsTextStorage::Storage_GetCharsInSpan Method (array<TextSpan>^, Int32)

 

Gets the number of characters in the specified span.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int Storage_GetCharsInSpan(
	array<TextSpan>^ pSpanToMeasure,
	[OutAttribute] int% piChars
)

Parameters

pSpanToMeasure
Type: array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^

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

piChars
Type: System::Int32

[out] The number of characters in the span.

Return Value

Type: System::Int32

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

From textmgr.idl:

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