Partager via


IMergeTextUndoTransactionPolicy.PerformTransactionMerge Method

Definition

Merges a new ITextUndoTransaction with an existing one.

public:
 void PerformTransactionMerge(Microsoft::VisualStudio::Text::Operations::ITextUndoTransaction ^ existingTransaction, Microsoft::VisualStudio::Text::Operations::ITextUndoTransaction ^ newTransaction);
public void PerformTransactionMerge (Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction existingTransaction, Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction newTransaction);
abstract member PerformTransactionMerge : Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction * Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction -> unit
Public Sub PerformTransactionMerge (existingTransaction As ITextUndoTransaction, newTransaction As ITextUndoTransaction)

Parameters

existingTransaction
ITextUndoTransaction

The existing transaction.

newTransaction
ITextUndoTransaction

The new transaction.

Remarks

Merges newTransaction into existingTransaction by adding, removing, or modifying the primitives in existingTransaction.UndoPrimitives. A simple implementation could be to add each primitive in newTransaction.UndoPrimitives to existingTransaction.UndoPrimitives.

Applies to