Click or drag to resize
CfxOnBeforeUnloadDialogEventArgs Class

[This is preliminary documentation and is subject to change.]

Called to run a dialog asking the user if they want to leave a page. Return false (0) to use the default dialog implementation. Return true (1) if the application will use a custom dialog or if the callback has been executed immediately. Custom dialogs may be either modal or modeless. If a custom dialog is used the application must execute |Callback| once the custom dialog is dismissed.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    ChromiumCfxEventArgs
      Chromium.EventCfxOnBeforeUnloadDialogEventArgs

Namespace: Chromium.Event
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxOnBeforeUnloadDialogEventArgs : CfxEventArgs

The CfxOnBeforeUnloadDialogEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyBrowser
Get the Browser parameter for the OnBeforeUnloadDialog callback.
Public propertyCallback
Get the Callback parameter for the OnBeforeUnloadDialog callback.
Public propertyIsReload
Get the IsReload parameter for the OnBeforeUnloadDialog callback.
Public propertyMessageText
Get the MessageText parameter for the OnBeforeUnloadDialog callback.
Top
Methods
  NameDescription
Public methodSetReturnValue
Set the return value for the OnBeforeUnloadDialog callback. Calling SetReturnValue() more then once per callback or from different event handlers will cause an exception to be thrown.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_jsdialog_handler_capi.h.
See Also