This documentation is archived and is not being maintained.

IMergeTextUndoTransactionPolicy Interface

Provides the merge policy for undo transactions.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

public interface IMergeTextUndoTransactionPolicy

The IMergeTextUndoTransactionPolicy type exposes the following members.

Public methodCanMergeDetermines whether two transactions can be merged
Public methodPerformTransactionMergeMerges a new ITextUndoTransaction with an existing one.
Public methodTestCompatiblePolicyDetermines whether one IMergeTextUndoTransactionPolicy is compatible with another.

These policies are used when transactions are completed and pushed onto the undo stack. Only adjacent ITextUndoTransaction objects can be merged.