Compartilhar via


IVsTextBufferCoordinator.SetBufferMappingModes(UInt32, UInt32) Method

Definition

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.

Applies to