ITextUndoHistory.CanUndo 属性

确定是否可以执行一个撤消操作。

命名空间:  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 ,如果单个撤消有可能,否则 false。

备注

此属性对应于最新可见的 CanUndo 取消 ITextUndoTransaction。 如果存在隐藏的事务中显示可见事务的顶部,此属性返回 true,则仅当它们可以取消。

.NET Framework 安全性

请参阅

参考

ITextUndoHistory 接口

Microsoft.VisualStudio.Text.Operations 命名空间