表示 ITextUndoPrimitive 对象的容器。
命名空间: Microsoft.VisualStudio.Text.Operations
程序集: Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)
语法
声明
Public Interface ITextUndoTransaction _
Inherits IDisposable
public interface ITextUndoTransaction : IDisposable
public interface class ITextUndoTransaction : IDisposable
type ITextUndoTransaction =
interface
interface IDisposable
end
public interface ITextUndoTransaction extends IDisposable
ITextUndoTransaction 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
CanRedo | 确定成功调用 Do 当前是否可能的。 |
![]() |
CanUndo | 确定当前是否能够成功调用 Undo()。 |
![]() |
Description | 获取或设置说明。 |
![]() |
History | 获取包含此事务的 ITextUndoHistory。 |
![]() |
MergePolicy | 获取与此事务关联的 IMergeTextUndoTransactionPolicy。 |
![]() |
Parent | 获取包含此事务的 ITextUndoTransaction。 |
![]() |
State | 获取 ITextUndoTransaction 的 UndoTransactionState。 |
![]() |
UndoPrimitives | 获取此容器中的 ITextUndoPrimitive 对象的集合。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
AddUndo | ,并在打开事务时,添加一个新撤消基元到列表的末尾。 |
![]() |
Cancel | 将打开的事务标记为已取消,并移除和清除任何移除已添加的基元。 |
![]() |
Complete | 将事务标记为已完成且可撤消。 |
![]() |
Dispose | 执行与释放或重置非托管资源关联的应用程序定义的任务。 (继承自 IDisposable。) |
![]() |
Do | 执行执行或重做操作。 |
![]() |
Undo | 执行撤消或回滚。 |
页首
备注
这些对象在 UndoHistory跟踪。