◆ AfterCreateDocument()
| void DocumentListener.AfterCreateDocument |
( |
Document |
pDocument | ) |
|
◆ AfterDocumentChanged()
◆ AfterOpenDocument()
| void DocumentListener.AfterOpenDocument |
( |
Document |
pDocument | ) |
|
◆ AfterSaveDocument()
| void DocumentListener.AfterSaveDocument |
( |
Document |
pDocument | ) |
|
◆ OnActiveDocument()
| void DocumentListener.OnActiveDocument |
( |
Document |
pDocument | ) |
|
◆ OnChangeElement()
| void DocumentListener.OnChangeElement |
( |
Document |
pDocument, |
|
|
ObjectId |
id, |
|
|
int |
flags |
|
) |
| |
Element发生变化。用户通过Document.NotifyElementChanged触发。触发时机由用户控制。
- 参数
-
| pDocument | 文档对象
|
| id | 变化的ID
|
| flags | 自定义的标记信息。 |
◆ OnSelectionChanged()
| void DocumentListener.OnSelectionChanged |
( |
Document |
pDocument, |
|
|
ObjectId |
viewId |
|
) |
| |
◆ OnSwitchDbView()
| void DocumentListener.OnSwitchDbView |
( |
Document |
pDocument, |
|
|
ObjectId |
oldDbViewId |
|
) |
| |
当前视图被切换了
- 参数
-
| pDocument | 文档
|
| oldDbViewId | 之前的DbViewId。新的从Document.GetActiveDbViewId()获取。 |
◆ OnSwitchSketch()
当前草图被切换了
- 参数
-
| pDocument | 文档
|
| viewId | DbView的Id。 |
◆ OnUpdateView()
◆ OnViewportChanged()
| void DocumentListener.OnViewportChanged |
( |
Document |
pDocument, |
|
|
ObjectId |
viewportId |
|
) |
| |
DbViewport的location或size发生变化
- 参数
-
| pDocument | 文档
|
| viewportId | DbViewport的Id |