IVsTextBufferCoordinator::SetBufferMappingModes Method (UInt32, UInt32)

 

Establishes the mapping modes for both primary and secondary buffers.

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

int SetBufferMappingModes(
	unsigned int bcmmPrimary,
	unsigned int bcmmSecondary
)

Parameters

bcmmPrimary
Type: System::UInt32

[in] A combination of flags from the _BufferCoordinatorMappingMode enumeration that specifies the mapping modes for the primary buffer.

bcmmSecondary
Type: System::UInt32

[in] A combination of flags from the _BufferCoordinatorMappingMode enumeration that specifies the mapping modes for the secondary buffer.

Return Value

Type: System::Int32

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

From singlefileeditor.idl:

HRESULT SetBufferMappingModes(
   [in] DWORD bcmmPrimary,
   [in] DWORD bcmmSecondary
);

The mapping modes set by this method control the extent of the character span that is mapped from a particular buffer. This extent is discussed in detail in the _BufferCoordinatorMappingMode enumeration.

Return to top
Show: