次の方法で共有


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)

Syntax

'宣言
ReadOnly Property CanUndo As Boolean
    Get
bool CanUndo { get; }
property bool CanUndo {
    bool get ();
}
abstract CanUndo : bool
function get CanUndo () : boolean

Property Value

Type: System.Boolean
true if a single undo is possible, otherwise false.

Remarks

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.

.NET Framework Security

See Also

Reference

ITextUndoHistory Interface

Microsoft.VisualStudio.Text.Operations Namespace