EnumSpans Method

IVsTextBufferCoordinator.EnumSpans Method (IVsEnumBufferCoordinatorSpans)


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)

int EnumSpans(
	ref IVsEnumBufferCoordinatorSpans ppEnum


Type: Microsoft.VisualStudio.TextManager.Interop.IVsEnumBufferCoordinatorSpans

[out] Returns an IVsEnumBufferCoordinatorSpans object that contains a list of NewSpanMapping objects.

Return Value

Type: System.Int32

If successful, returns S_OK; otherwise, returns an error code.

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.

Return to top
© 2015 Microsoft