Share via


IMergeTextUndoTransactionPolicy.CanMerge Method

Definition

Determines whether two ITextUndoTransaction objects can be merged.

public:
 bool CanMerge(Microsoft::VisualStudio::Text::Operations::ITextUndoTransaction ^ newerTransaction, Microsoft::VisualStudio::Text::Operations::ITextUndoTransaction ^ olderTransaction);
public bool CanMerge (Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction newerTransaction, Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction olderTransaction);
abstract member CanMerge : Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction * Microsoft.VisualStudio.Text.Operations.ITextUndoTransaction -> bool
Public Function CanMerge (newerTransaction As ITextUndoTransaction, olderTransaction As ITextUndoTransaction) As Boolean

Parameters

newerTransaction
ITextUndoTransaction

The newer transaction.

olderTransaction
ITextUndoTransaction

The older transaction.

Returns

true of the merge should proceed, otherwise false.

Remarks

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.

Applies to