Freigeben über


IMergeTextUndoTransactionPolicy.PerformTransactionMerge Method

Merges a new ITextUndoTransaction with an existing one.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Sub PerformTransactionMerge ( _
    existingTransaction As ITextUndoTransaction, _
    newTransaction As ITextUndoTransaction _
)
void PerformTransactionMerge(
    ITextUndoTransaction existingTransaction,
    ITextUndoTransaction newTransaction
)
void PerformTransactionMerge(
    ITextUndoTransaction^ existingTransaction, 
    ITextUndoTransaction^ newTransaction
)
abstract PerformTransactionMerge : 
        existingTransaction:ITextUndoTransaction * 
        newTransaction:ITextUndoTransaction -> unit 
function PerformTransactionMerge(
    existingTransaction : ITextUndoTransaction, 
    newTransaction : ITextUndoTransaction
)

Parameters

Remarks

This method merges newTransaction with existingTransaction by adding, removing, or modifying the undo primitives in the existing transaction's ITextUndoPrimitive collection. A simple implementation might add each undo primitive in the new transaction to those of the existing transaction.

.NET Framework Security

See Also

Reference

IMergeTextUndoTransactionPolicy Interface

Microsoft.VisualStudio.Text.Operations Namespace