Compartir a través de


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)

Syntax

'Declaración
Function SetBufferMappingModes ( _
    bcmmPrimary As UInteger, _
    bcmmSecondary As UInteger _
) As Integer
int SetBufferMappingModes(
    uint bcmmPrimary,
    uint bcmmSecondary
)
int SetBufferMappingModes(
    [InAttribute] unsigned int bcmmPrimary, 
    [InAttribute] unsigned int bcmmSecondary
)
abstract SetBufferMappingModes : 
        bcmmPrimary:uint32 * 
        bcmmSecondary:uint32 -> int 
function SetBufferMappingModes(
    bcmmPrimary : uint, 
    bcmmSecondary : uint
) : int

Parameters

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IVsTextBufferCoordinator Interface

Microsoft.VisualStudio.TextManager.Interop Namespace