VsTextBufferCoordinatorClass::SetSpanMappings Method (Int32, array<NewSpanMapping>^)

 

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)

public:
virtual int SetSpanMappings(
	int cSpans,
	array<NewSpanMapping>^ rgSpans
)

Parameters

cSpans
Type: System::Int32

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

rgSpans
Type: array<Microsoft.VisualStudio.TextManager.Interop::NewSpanMapping>^

[in] An array of NewSpanMapping structures each of which specify a single mapping between the primary and secondary buffers.

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

Return to top
Show: