IMergeTextUndoTransactionPolicy::CanMerge Method (ITextUndoTransaction^, ITextUndoTransaction^)
Visual Studio 2015
Determines whether two transactions can be merged
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
bool CanMerge(
ITextUndoTransaction^ newerTransaction,
ITextUndoTransaction^ olderTransaction
)
Parameters
- newerTransaction
-
Type:
Microsoft.VisualStudio.Text.Operations::ITextUndoTransaction^
The newer transaction.
- olderTransaction
-
Type:
Microsoft.VisualStudio.Text.Operations::ITextUndoTransaction^
The older transaction.
If this method returns true, then the merge can proceed, given specific knowledge of the transactions in question. This method is called only when TestCompatiblePolicy succeeds.
Show: