Interface IFileDialog
- Namespace
- Lime
- Assembly
- Lime.dll
Brings access to files and folders through the dialog screen.
public interface IFileDialog
Properties
AllowedFileTypes
Gets or sets an array of allowed file types. Example { "txt", "png" }.
string[] AllowedFileTypes { get; set; }
Property Value
- string[]
AllowsMultipleSelection
Gets or sets a value indicating whether it is allowed to select more then one file in the open file dialog.
bool AllowsMultipleSelection { get; set; }
Property Value
CanCreateDirectories
Gets or sets a value indicating whether the dialog can create directories.
bool CanCreateDirectories { get; set; }
Property Value
FileName
Gets a string containing file or folder path selected in the dialog.
string FileName { get; }
Property Value
FileNames
Gets an array of strings containing paths of all selected files.
string[] FileNames { get; }
Property Value
- string[]
InitialDirectory
Gets or sets the dialog's initial directory.
string InitialDirectory { get; set; }
Property Value
InitialFileName
Gets or sets initial file name.
string InitialFileName { get; set; }
Property Value
Mode
Gets or sets a mode indicating whether this dialog opens file, saves file or selects folder.
FileDialogMode Mode { get; set; }
Property Value
Title
Title text of the file dialog window.
string Title { get; set; }
Property Value
Methods
RunModal()
Shows dialog.
bool RunModal()
Returns
- bool
return true if user clicks OK in the dialog.