Share via


IVsEnumTextSpans.GetCount(UInt32) Method

Definition

Returns the total count of text spans in the enumeration sequence.

public:
 int GetCount([Runtime::InteropServices::Out] System::UInt32 % pcSpans);
int GetCount([Runtime::InteropServices::Out] unsigned int & pcSpans);
public int GetCount (out uint pcSpans);
abstract member GetCount : uint32 -> int
Public Function GetCount (ByRef pcSpans As UInteger) As Integer

Parameters

pcSpans
UInt32

[out] Total count of text spans in the enumeration sequence.

Returns

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

Remarks

COM Signature

From textmgr.idl:

[C++]

HRESULT IVsEnumTextSpans::GetCount(  
   [out] ULONG *pcSpans  
);  

Applies to