Home > DMT_SelectControl > getCurrentDocumentInfo
DMT_SelectControl.getCurrentDocumentInfo() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
获取当前文档的属性
Signature
typescript
getCurrentDocumentInfo(): Promise<IDMT_EditorDocumentItem | undefined>;
1
Returns
Promise<IDMT_EditorDocumentItem | undefined>
文档类型、UUID、所属工程的 UUID 组成的对象,如若为 undefined
则获取失败
Remarks
仅在存在打开的工程后生效,将会获取当前打开且拥有最后输入焦点的文档的文档类型、UUID、所属工程的 UUID