/// <summary> /// Retrieves the CfxPrintHandler provided by the event handler attached to the GetPrintHandler event, if any. /// Returns null if no event handler is attached. /// </summary> public CfxPrintHandler RetrievePrintHandler() { var h = m_GetPrintHandler; if (h != null) { var e = new CfxGetPrintHandlerEventArgs(); h(this, e); return(e.m_returnValue); } else { return(null); } }
internal static void get_print_handler(IntPtr gcHandlePtr, out IntPtr __retval) { var self = (CfxBrowserProcessHandler)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target; if (self == null || self.CallbacksDisabled) { __retval = default(IntPtr); return; } var e = new CfxGetPrintHandlerEventArgs(); self.m_GetPrintHandler?.Invoke(self, e); e.m_isInvalid = true; __retval = CfxPrintHandler.Unwrap(e.m_returnValue); }