다음을 통해 공유


IVsTextBufferCoordinator.EnumSpans(IVsEnumBufferCoordinatorSpans) Method

Definition

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

public:
 int EnumSpans(Microsoft::VisualStudio::TextManager::Interop::IVsEnumBufferCoordinatorSpans ^ % ppEnum);
public:
 int EnumSpans(Microsoft::VisualStudio::TextManager::Interop::IVsEnumBufferCoordinatorSpans ^ &  ppEnum);
int EnumSpans(Microsoft::VisualStudio::TextManager::Interop::IVsEnumBufferCoordinatorSpans const & & ppEnum);
public int EnumSpans (ref Microsoft.VisualStudio.TextManager.Interop.IVsEnumBufferCoordinatorSpans ppEnum);
abstract member EnumSpans : IVsEnumBufferCoordinatorSpans -> int
Public Function EnumSpans (ByRef ppEnum As IVsEnumBufferCoordinatorSpans) As Integer

Parameters

ppEnum
IVsEnumBufferCoordinatorSpans

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

Returns

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.

Applies to