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
'Declaração
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
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.