共用方式為


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 命名空間