IMergeTextUndoTransactionPolicy::PerformTransactionMerge Method (ITextUndoTransaction^, ITextUndoTransaction^)
Visual Studio 2015
Merges a new ITextUndoTransaction with an existing one.
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.
Show: