Table of Contents

Class FileDialog

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Base class for the OpenDialog and the SaveDialog

public class FileDialog : Dialog, IDisposable, ISupportInitializeNotification, ISupportInitialize
Inheritance
FileDialog
Implements
Derived
Inherited Members

Constructors

FileDialog()

Initializes a new FileDialog.

FileDialog(ustring, ustring, ustring, ustring, ustring, List<string>)

Initializes a new instance of FileDialog

FileDialog(ustring, ustring, ustring, ustring, List<string>)

Initializes a new instance of FileDialog

FileDialog(ustring, ustring, ustring, List<string>)

Initializes a new instance of FileDialog

Properties

AllowedFileTypes

The array of filename extensions allowed, or null if all file extensions are allowed.

AllowsOtherFileTypes

Gets or sets a value indicating whether this FileDialog allows the file to be saved with a different extension

CanCreateDirectories

Gets or sets a value indicating whether this FileDialog can create directories.

Canceled

Check if the dialog was or not canceled.

DirectoryPath

Gets or sets the directory path for this panel

FilePath

The File path that is currently shown on the panel

IsExtensionHidden

Gets or sets a value indicating whether this FileDialog is extension hidden.

Message

Gets or sets the message displayed to the user, defaults to nothing

NameDirLabel

Gets or sets the name of the directory field label.

NameFieldLabel

Gets or sets the name field label.

Prompt

Gets or sets the prompt label for the Button displayed to the user

Methods

WillPresent()

Invoked by Begin(Toplevel) as part of Run(Toplevel, Func<Exception, bool>) after the views have been laid out, and before the views are drawn for the first time.