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

 

Determines whether two transactions can be merged

Namespace:   Microsoft.VisualStudio.Text.Operations
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.

Return Value

Type: System::Boolean

true if the transactions can be merged, otherwise false.

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.

Return to top
Show: