ITextUndoTransaction.CanUndo 属性

确定当前是否能够成功调用 Undo()。

命名空间:  Microsoft.VisualStudio.Text.Operations
程序集:  Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)

语法

声明
ReadOnly Property CanUndo As Boolean
bool CanUndo { get; }
property bool CanUndo {
    bool get ();
}
abstract CanUndo : bool with get
function get CanUndo () : boolean

属性值

类型:Boolean
true ,如果成功调用 Undo 当前处于可以为; 否则为 false。

.NET Framework 安全性

请参阅

参考

ITextUndoTransaction 接口

Microsoft.VisualStudio.Text.Operations 命名空间