次の方法で共有


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

'宣言
Function EnumSpans ( _
    ByRef ppEnum As IVsEnumBufferCoordinatorSpans _
) As Integer
'使用
Dim instance As IVsTextBufferCoordinator
Dim ppEnum As IVsEnumBufferCoordinatorSpans
Dim returnValue As Integer

returnValue = instance.EnumSpans(ppEnum)
int EnumSpans(
    ref IVsEnumBufferCoordinatorSpans ppEnum
)
int EnumSpans(
    IVsEnumBufferCoordinatorSpans^% ppEnum
)
abstract EnumSpans : 
        ppEnum:IVsEnumBufferCoordinatorSpans byref -> int 
function EnumSpans(
    ppEnum : IVsEnumBufferCoordinatorSpans
) : int

Parameters

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

See Also

Reference

IVsTextBufferCoordinator Interface

IVsTextBufferCoordinator Members

Microsoft.VisualStudio.TextManager.Interop Namespace