Click or drag to resize
CfxDialogHandlerOnFileDialogEventArgs Class

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

Called to run a file chooser dialog. |Mode| represents the type of dialog to display. |Title| to the title to be used for the dialog and may be NULL to show the default title ("Open" or "Save" depending on the mode). |DefaultFilePath| is the path with optional directory and/or file name component that should be initially selected in the dialog. |AcceptFilters| are used to restrict the selectable file types and may any combination of (a) valid lower-cased MIME types (e.g. "text/*" or "image/*"), (b) individual file extensions (e.g. ".txt" or ".png"), or (c) combined description and file extension delimited using "|" and ";" (e.g. "Image Types|.png;.gif;.jpg"). |SelectedAcceptFilter| is the 0-based index of the filter that should be selected by default. To display a custom dialog return true (1) and execute |Callback| either inline or at a later time. To display the default dialog return false (0).
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    ChromiumCfxEventArgs
      Chromium.EventCfxDialogHandlerOnFileDialogEventArgs

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

The CfxDialogHandlerOnFileDialogEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyAcceptFilters
Get the AcceptFilters parameter for the OnFileDialog callback.
Public propertyBrowser
Get the Browser parameter for the OnFileDialog callback.
Public propertyCallback
Get the Callback parameter for the OnFileDialog callback.
Public propertyDefaultFilePath
Get the DefaultFilePath parameter for the OnFileDialog callback.
Public propertyMode
Get the Mode parameter for the OnFileDialog callback.
Public propertySelectedAcceptFilter
Get the SelectedAcceptFilter parameter for the OnFileDialog callback.
Public propertyTitle
Get the Title parameter for the OnFileDialog callback.
Top
Methods
  NameDescription
Public methodSetReturnValue
Set the return value for the OnFileDialog 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_dialog_handler_capi.h.
See Also