Condividi tramite


ITextUndoPrimitive Interface

Represents an atomic operation that knows how to do, undo, and redo itself.

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

Syntax

'Dichiarazione
Public Interface ITextUndoPrimitive
public interface ITextUndoPrimitive
public interface class ITextUndoPrimitive
type ITextUndoPrimitive =  interface end
public interface ITextUndoPrimitive

The ITextUndoPrimitive type exposes the following members.

Properties

  Name Description
Public property CanRedo Determines whether it is currently possible to call Do() successfully.
Public property CanUndo Determines whether it is currently possible to call Undo() successfully.
Public property Parent Gets or sets the ITextUndoTransaction that contains the primitive.

Top

Methods

  Name Description
Public method CanMerge Determines whether this undo primitive can merge with the specified undo primitive.
Public method Do Performs or redoes the operation.
Public method Merge Performs a merge with the specified undo primitive.
Public method Undo Performs undo on the primitive.

Top

See Also

Reference

Microsoft.VisualStudio.Text.Operations Namespace