Document.OnBeforeCloseDocument

www.altova.com このトピックを印刷 前のページ 1つ上のレベル 次のページ

ホーム >  プログラマーのレファレンス > Application API > Interfaces > Document > Events >

Document.OnBeforeCloseDocument

See also

 

Event: OnBeforeCloseDocument(objDocument as Document)as Boolean

 

XMLSpy scripting environment - VBScript:

Function On_BeforeCloseDocument(objDocument)

 ' On_BeforeCloseDocument = False  ' to prohibit closing of document

End Function

 

XMLSpy scripting environment - JScript:

function On_BeforeCloseDocument(objDocument)

{

 // return false;  /* to prohibit closing of document */

}

 

XMLSpy IDE Plugin:

IXMLSpyPlugIn.OnEvent (28, ...)        // nEventId = 28

 

Description

This event gets fired on any attempt to close a document. To prevent the document from being closed return false.

 


(C) 2018 Altova GmbH