IVsTextBufferCoordinator.EnumSpans(IVsEnumBufferCoordinatorSpans) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
[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.