다음을 통해 공유


VsTextBufferCoordinatorClass.SetSpanMappings Method

Establishes the list of mappings between the primary and secondary buffers.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
Public Overridable Function SetSpanMappings ( _
    cSpans As Integer, _
    rgSpans As NewSpanMapping() _
) As Integer
public virtual int SetSpanMappings(
    int cSpans,
    NewSpanMapping[] rgSpans
)
public:
virtual int SetSpanMappings(
    [InAttribute] int cSpans, 
    [InAttribute] array<NewSpanMapping>^ rgSpans
)
abstract SetSpanMappings : 
        cSpans:int * 
        rgSpans:NewSpanMapping[] -> int  
override SetSpanMappings : 
        cSpans:int * 
        rgSpans:NewSpanMapping[] -> int
public function SetSpanMappings(
    cSpans : int, 
    rgSpans : NewSpanMapping[]
) : int

Parameters

  • cSpans
    Type: System.Int32

    [in] The number of mappings specified in the rgSpans array.

Return Value

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

Implements

IVsTextBufferCoordinator.SetSpanMappings(Int32, array<NewSpanMapping[])

.NET Framework Security

See Also

Reference

VsTextBufferCoordinatorClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace