IMergeTextUndoTransactionPolicy Interface

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

NameDescription
System_CAPS_pubmethodCanMerge(ITextUndoTransaction, ITextUndoTransaction)

Determines whether two transactions can be merged

System_CAPS_pubmethodPerformTransactionMerge(ITextUndoTransaction, ITextUndoTransaction)

Merges a new ITextUndoTransaction with an existing one.

System_CAPS_pubmethodTestCompatiblePolicy(IMergeTextUndoTransactionPolicy)

Determines 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.

Return to top
Show:
© 2016 Microsoft