Table of Contents

Class SaveDialog

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

The SaveDialog provides an interactive dialog box for users to pick a file to save.

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

Remarks

To use, create an instance of SaveDialog, and pass it to Run(Toplevel, Func<Exception, bool>, ConsoleDriver). This will run the dialog modally, and when this returns, the FileNameproperty will contain the selected file name or null if the user canceled.

Constructors

SaveDialog()

Initializes a new SaveDialog.

Properties

FileName

Gets the name of the file the user selected for saving, or null if the user canceled the SaveDialog.

Methods

GetDefaultTitle()

Gets the default title for the SaveDialog.