IVsTextBufferCoordinator.SetBufferMappingModes(UInt32, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Establishes the mapping modes for both primary and secondary buffers.
public:
int SetBufferMappingModes(System::UInt32 bcmmPrimary, System::UInt32 bcmmSecondary);
public:
int SetBufferMappingModes(unsigned int bcmmPrimary, unsigned int bcmmSecondary);
int SetBufferMappingModes(unsigned int bcmmPrimary, unsigned int bcmmSecondary);
public int SetBufferMappingModes (uint bcmmPrimary, uint bcmmSecondary);
abstract member SetBufferMappingModes : uint32 * uint32 -> int
Public Function SetBufferMappingModes (bcmmPrimary As UInteger, bcmmSecondary As UInteger) As Integer
Parameters
- bcmmPrimary
- UInt32
[in] A combination of flags from the _BufferCoordinatorMappingMode enumeration that specifies the mapping modes for the primary buffer.
- bcmmSecondary
- UInt32
[in] A combination of flags from the _BufferCoordinatorMappingMode enumeration that specifies the mapping modes for the secondary buffer.
Returns
If successful, returns S_OK; otherwise, returns an error code.
Remarks
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.