IVsTextBufferCoordinator.EnableReplication Method

Enables replication from primary to secondary buffer and replication from the secondary buffer to the primary.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
Function EnableReplication ( _
    bcrd As UInteger, _
    fEnable As Integer _
) As Integer
'Usage
Dim instance As IVsTextBufferCoordinator 
Dim bcrd As UInteger 
Dim fEnable As Integer 
Dim returnValue As Integer 

returnValue = instance.EnableReplication(bcrd, _
    fEnable)
int EnableReplication(
    uint bcrd,
    int fEnable
)
int EnableReplication(
    [InAttribute] unsigned int bcrd, 
    [InAttribute] int fEnable
)
function EnableReplication(
    bcrd : uint, 
    fEnable : int
) : int

Parameters

  • fEnable
    Type: System.Int32

    [in] Nonzero (TRUE) to enable replication in the specified direction; otherwise, zero (FALSE) to disable replication.

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT EnableReplication(
   [in] DWORD bcrd,
   [in] BOOL  fEnable
);

Although the default direction of primary to secondary is enabled when the buffer coordinator object is created, do not assume a particular direction is enabled or disabled. Only one direction can be enabled at a time (that is, the directions are typically mutually exclusive).

.NET Framework Security

See Also

Reference

IVsTextBufferCoordinator Interface

IVsTextBufferCoordinator Members

Microsoft.VisualStudio.TextManager.Interop Namespace