AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
UndoTransaction (Document doc) | |
UndoTransaction (Element element) | |
void | BeginPreview (String name) |
void | CommitPreview (boolean restart) |
void | CommitPreview () |
void | EndPreview () |
boolean | Start (String name) |
boolean | Abort () |
boolean | Commit (EnumTransactionAction action) |
boolean | Commit () |
<> 事务管理
UndoTransaction.UndoTransaction | ( | Document | doc | ) |
构造事务
doc | 文档对象 |
boolean UndoTransaction.Abort | ( | ) |
放弃所作的修改
void UndoTransaction.BeginPreview | ( | String | name | ) |
进入预览模式
name | 名称 |
boolean UndoTransaction.Commit | ( | ) |
提交事务
boolean UndoTransaction.Commit | ( | EnumTransactionAction | action | ) |
提交事务
void UndoTransaction.CommitPreview | ( | ) |
保存已有的修改,仍然在预览模式
void UndoTransaction.CommitPreview | ( | boolean | restart | ) |
保存已有的修改,仍然在预览模式
void UndoTransaction.EndPreview | ( | ) |
结束预览模式。回退之前的修改
boolean UndoTransaction.Start | ( | String | name | ) |
开始事务
name | 名称 |