IMergeTextUndoTransactionPolicy.PerformTransactionMerge Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.