ITextUndoHistory.CanUndo Property


Determines whether a single undo is possible.

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

bool CanUndo { get; }

Property Value

Type: System.Boolean

true if a single undo is possible, otherwise false.

This property corresponds to CanUndo for the most recent visible undo ITextUndoTransaction. If there are hidden transactions on top of the visible transaction, this property returns true only if they can be undone as well.

Return to top