Freigeben über


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)

Syntax

'Declaration
Public Interface IMergeTextUndoTransactionPolicy
public interface IMergeTextUndoTransactionPolicy
public interface class IMergeTextUndoTransactionPolicy
type IMergeTextUndoTransactionPolicy =  interface end
public interface IMergeTextUndoTransactionPolicy

The IMergeTextUndoTransactionPolicy type exposes the following members.

Methods

  Name Description
Public method CanMerge Determines whether two transactions can be merged
Public method PerformTransactionMerge Merges a new ITextUndoTransaction with an existing one.
Public method TestCompatiblePolicy Determines whether one IMergeTextUndoTransactionPolicy is compatible with another.

Top

Remarks

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

See Also

Reference

Microsoft.VisualStudio.Text.Operations Namespace