AuthenticView.OnBeforePaste

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Programmers' Reference > Application API > Interfaces > AuthenticView > Events >

AuthenticView.OnBeforePaste

See also

 

Event: OnBeforePaste (objData as Variant, strType as String) as Boolean

 

Scripting environment - VBScript:

Function On_AuthenticBeforePaste(objData, strType)

 ' On_AuthenticBeforePaste = False  ' to disable operation

End Function

 

Scripting environment - JScript:

function On_AuthenticBeforePaste(objData, strType)

{

 // return false;  /* to disable operation */

}

 

IDE Plugin:

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

 

Description

This event gets triggered before a paste operation gets performed on the document. The parameter strType is one of "TEXT", "UNICODETEXT" or "IUNKNOWN". In the first two cases objData contains a string representation of the object that will be pasted. In the later case, objData contains a pointer to an IUnknown COM interface.

 

Return True (or nothing) to allow paste operation. Return False to disable operation.


© 2019 Altova GmbH