共用方式為


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

'宣告
Function SetBufferMappingModes ( _
    bcmmPrimary As UInteger, _
    bcmmSecondary As UInteger _
) As Integer
'用途
Dim instance As IVsTextBufferCoordinator
Dim bcmmPrimary As UInteger
Dim bcmmSecondary As UInteger
Dim returnValue As Integer

returnValue = instance.SetBufferMappingModes(bcmmPrimary, _
    bcmmSecondary)
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

IVsTextBufferCoordinator Members

Microsoft.VisualStudio.TextManager.Interop Namespace