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