Compartir a través de


IVsEnumTextSpans.GetCount Method

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

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

Syntax

'Declaration
Function GetCount ( _
    <OutAttribute> ByRef pcSpans As UInteger _
) As Integer
int GetCount(
    out uint pcSpans
)
int GetCount(
    [OutAttribute] unsigned int% pcSpans
)
abstract GetCount : 
        pcSpans:uint32 byref -> int
function GetCount(
    pcSpans : uint
) : int

Parameters

  • pcSpans
    Type: System.UInt32%

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

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsEnumTextSpans Interface

Microsoft.VisualStudio.TextManager.Interop Namespace