Showing content from https://cefsharp.github.io/api/118.6.x/html/M_CefSharp_IBrowserHost_RunFileDialog.htm below:
IBrowserHostRunFileDialog Method Version 118.6.80
Call to run a file chooser dialog. Only a single file chooser dialog may be pending at any given time. The dialog will be initiated asynchronously on the CEF UI thread.
Namespace: CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 118.6.80.0 (118.6.80.0)
Syntax
void RunFileDialog(
CefFileDialogMode mode,
string title,
string defaultFilePath,
IList<string> acceptFilters,
IRunFileDialogCallback callback
)
void RunFileDialog(
CefFileDialogMode mode,
String^ title,
String^ defaultFilePath,
IList<String^>^ acceptFilters,
IRunFileDialogCallback^ callback
)
Parameters
-
mode
-
Type: CefSharpCefFileDialogMode
represents the type of dialog to display
-
title
-
Type: SystemString
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)
-
defaultFilePath
-
Type: SystemString
is the path with optional directory and/or file name component that will be initially selected in the dialog
-
acceptFilters
-
Type: System.Collections.GenericIListString
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")
-
callback
-
Type: CefSharp.CallbackIRunFileDialogCallback
will be executed after the dialog is dismissed or immediately if another dialog is already pending.
See Also
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4