Class FileDialog
- Namespace
- Lime
- Assembly
- Lime.dll
Brings access to files and folders through the dialog screen.
public class FileDialog : IFileDialog
- Inheritance
-
FileDialog
- Implements
- Inherited Members
Properties
AllowedFileTypes
Gets or sets an array of allowed file types. Example { "txt", "png" }.
public 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.
public bool AllowsMultipleSelection { get; set; }
Property Value
CanCreateDirectories
Gets or sets a value indicating whether the folder browser dialog has the "New Folder" button.
public bool CanCreateDirectories { get; set; }
Property Value
FileName
Gets a string containing file or folder path selected in the dialog.
public string FileName { get; }
Property Value
FileNames
Gets an array of strings containing paths of all selected files.
public string[] FileNames { get; }
Property Value
- string[]
InitialDirectory
Gets or sets the dialog's initial directory.
public string InitialDirectory { get; set; }
Property Value
InitialFileName
Gets or sets initial file name showed in file dialog.
public string InitialFileName { get; set; }
Property Value
Mode
Gets or sets a mode indicating whether this dialog opens file, saves file or selects folder.
public FileDialogMode Mode { get; set; }
Property Value
Title
Title text of the file dialog window.
public string Title { get; set; }
Property Value
Methods
RunModal()
Shows dialog.
public bool RunModal()
Returns
- bool
return true if user clicks OK in the dialog.