CefDialogHandler OnFileDialog Method Xilium.CefGlue

[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 empty to show the default title ("Open" or "Save" depending on the mode). |default_file_path| is the path with optional directory and/or file name component that should be initially selected in the dialog. |accept_filters| 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"). |selected_accept_filter| is the 0-based index of the filter that should be selected by default. To display a custom dialog return true and execute |callback| either inline or at a later time. To display the default dialog return false.

Namespace: Xilium.CefGlue
Assembly: Xilium.CefGlue (in Xilium.CefGlue.dll) Version: 3.2272.2035.0 (3.2272.2035.0)
Syntax

protected virtual bool OnFileDialog(
	CefBrowser browser,
	CefFileDialogMode mode,
	string title,
	string defaultFilePath,
	string[] acceptFilters,
	int selectedAcceptFilter,
	CefFileDialogCallback callback
)

Parameters

browser
Type: Xilium.CefGlue CefBrowser

[Missing <param name="browser"/> documentation for "M:Xilium.CefGlue.CefDialogHandler.OnFileDialog(Xilium.CefGlue.CefBrowser,Xilium.CefGlue.CefFileDialogMode,System.String,System.String,System.String[],System.Int32,Xilium.CefGlue.CefFileDialogCallback)"]

mode
Type: Xilium.CefGlue CefFileDialogMode

[Missing <param name="mode"/> documentation for "M:Xilium.CefGlue.CefDialogHandler.OnFileDialog(Xilium.CefGlue.CefBrowser,Xilium.CefGlue.CefFileDialogMode,System.String,System.String,System.String[],System.Int32,Xilium.CefGlue.CefFileDialogCallback)"]

title
Type: OnlineSystem String

[Missing <param name="title"/> documentation for "M:Xilium.CefGlue.CefDialogHandler.OnFileDialog(Xilium.CefGlue.CefBrowser,Xilium.CefGlue.CefFileDialogMode,System.String,System.String,System.String[],System.Int32,Xilium.CefGlue.CefFileDialogCallback)"]

defaultFilePath
Type: OnlineSystem String

[Missing <param name="defaultFilePath"/> documentation for "M:Xilium.CefGlue.CefDialogHandler.OnFileDialog(Xilium.CefGlue.CefBrowser,Xilium.CefGlue.CefFileDialogMode,System.String,System.String,System.String[],System.Int32,Xilium.CefGlue.CefFileDialogCallback)"]

acceptFilters
Type:  OnlineSystem String 

[Missing <param name="acceptFilters"/> documentation for "M:Xilium.CefGlue.CefDialogHandler.OnFileDialog(Xilium.CefGlue.CefBrowser,Xilium.CefGlue.CefFileDialogMode,System.String,System.String,System.String[],System.Int32,Xilium.CefGlue.CefFileDialogCallback)"]

selectedAcceptFilter
Type: OnlineSystem Int32

[Missing <param name="selectedAcceptFilter"/> documentation for "M:Xilium.CefGlue.CefDialogHandler.OnFileDialog(Xilium.CefGlue.CefBrowser,Xilium.CefGlue.CefFileDialogMode,System.String,System.String,System.String[],System.Int32,Xilium.CefGlue.CefFileDialogCallback)"]

callback
Type: Xilium.CefGlue CefFileDialogCallback

[Missing <param name="callback"/> documentation for "M:Xilium.CefGlue.CefDialogHandler.OnFileDialog(Xilium.CefGlue.CefBrowser,Xilium.CefGlue.CefFileDialogMode,System.String,System.String,System.String[],System.Int32,Xilium.CefGlue.CefFileDialogCallback)"]

Return Value

Type: OnlineBoolean

[Missing <returns> documentation for "M:Xilium.CefGlue.CefDialogHandler.OnFileDialog(Xilium.CefGlue.CefBrowser,Xilium.CefGlue.CefFileDialogMode,System.String,System.String,System.String[],System.Int32,Xilium.CefGlue.CefFileDialogCallback)"]

See Also