Interface DocEventCallbacksType
interface DocEventCallbacksType { onActivate?: (clientData: LPVOIDType, doc: DocType) => void; onAnnotKillFocus?: ( clientData: LPVOIDType, doc: DocType, focusAnnot: AnnotType, ) => void; onAnnotSelectionChanged?: (clientData: LPVOIDType) => void; onAnnotSetFocus?: ( clientData: LPVOIDType, doc: DocType, focusAnnot: AnnotType, ) => void; onClose?: (clientData: LPVOIDType) => void; onDeactivate?: (clientData: LPVOIDType, doc: DocType) => void; onFileClose?: (clientData: LPVOIDType, filePath: string) => void; onFinishRender?: (clientData: LPVOIDType, docView: DocViewType) => void; onOpen?: (clientData: LPVOIDType, doc: DocType) => void; onOtherDocActivate?: (clientData: LPVOIDType) => void; onOtherDocDeactivate?: (clientData: LPVOIDType) => void; onPermissionChange?: (clientData: LPVOIDType, doc: DocType) => void; onPrint?: (clientData: LPVOIDType, doc: DocType) => void; onSave?: (clientData: LPVOIDType, doc: DocType, isSaveAs: boolean) => void;} Properties
OptionalonAnnotSelectionChanged
onAnnotSelectionChanged?: (clientData: LPVOIDType) => void OptionalonFileClose
onFileClose?: (clientData: LPVOIDType, filePath: string) => void Type declaration
- (clientData: LPVOIDType, filePath: string): void
Returns void
OptionalonOtherDocActivate
onOtherDocActivate?: (clientData: LPVOIDType) => void OptionalonOtherDocDeactivate
onOtherDocDeactivate?: (clientData: LPVOIDType) => void OptionalonPermissionChange
文档事件回调函数
Description
用于文档级事件处理程序的回调集合。
Example