IMergeTextUndoTransactionPolicy::PerformTransactionMerge Method (ITextUndoTransaction^, ITextUndoTransaction^)

 

Merges a new ITextUndoTransaction with an existing one.

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

void PerformTransactionMerge(
	ITextUndoTransaction^ existingTransaction,
	ITextUndoTransaction^ newTransaction
)

Parameters

existingTransaction
Type: Microsoft.VisualStudio.Text.Operations::ITextUndoTransaction^

The existing transaction.

newTransaction
Type: Microsoft.VisualStudio.Text.Operations::ITextUndoTransaction^

The new transaction.

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.

Return to top
Show: