IVsTextBufferCoordinator.EnumSpans Method

Returns a list of span mappings controlled by the buffer coordinator object.

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

Syntax

'Declaration
Function EnumSpans ( _
    ByRef ppEnum As IVsEnumBufferCoordinatorSpans _
) As Integer
int EnumSpans(
    ref IVsEnumBufferCoordinatorSpans ppEnum
)
int EnumSpans(
    IVsEnumBufferCoordinatorSpans^% ppEnum
)
abstract EnumSpans : 
        ppEnum:IVsEnumBufferCoordinatorSpans byref -> int 
function EnumSpans(
    ppEnum : IVsEnumBufferCoordinatorSpans
) : int

Parameters

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT EnumSpans(
   [out] IVsEnumBufferCoordinatorSpans** ppEnum
);

Note that the list returned from this method is a copy of the current spans and is not updated when the main list of spans is updated.

.NET Framework Security

See Also

Reference

IVsTextBufferCoordinator Interface

Microsoft.VisualStudio.TextManager.Interop Namespace