This topic has not yet been rated - Rate this topic

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)
int EnumSpans(
	ref IVsEnumBufferCoordinatorSpans ppEnum
)

Parameters

ppEnum
Type: Microsoft.VisualStudio.TextManager.Interop.IVsEnumBufferCoordinatorSpans

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

Return Value

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

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.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.