IVsTextBufferCoordinator.SetBufferMappingModes Method

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(
	uint bcmmPrimary,
	uint 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.

COM Signature

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft