Table of Contents

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

bool

CanCreateDirectories

Gets or sets a value indicating whether the folder browser dialog has the "New Folder" button.

public bool CanCreateDirectories { get; set; }

Property Value

bool

FileName

Gets a string containing file or folder path selected in the dialog.

public string FileName { get; }

Property Value

string

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

string

InitialFileName

Gets or sets initial file name showed in file dialog.

public string InitialFileName { get; set; }

Property Value

string

Mode

Gets or sets a mode indicating whether this dialog opens file, saves file or selects folder.

public FileDialogMode Mode { get; set; }

Property Value

FileDialogMode

Title

Title text of the file dialog window.

public string Title { get; set; }

Property Value

string

Methods

RunModal()

Shows dialog.

public bool RunModal()

Returns

bool

return true if user clicks OK in the dialog.