Class SaveDialog
The SaveDialog provides an interactive dialog box for users to pick a file to
save.
Inherited Members
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class SaveDialog : FileDialog, IDisposable, ISupportInitializeNotification, ISupportInitialize
Remarks
To use, create an instance of SaveDialog, and pass it to Run(Func<Exception, bool>). 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
| Edit this page View SourceSaveDialog()
Initializes a new SaveDialog.
Declaration
public SaveDialog()
SaveDialog(ustring, ustring, List<string>)
Initializes a new SaveDialog.
Declaration
public SaveDialog(ustring title, ustring message, List<string> allowedTypes = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ustring | title | The title. |
| ustring | message | The message. |
| List<string> | allowedTypes | The allowed types. |
Properties
| Edit this page View SourceFileName
Gets the name of the file the user selected for saving, or null
if the user canceled the SaveDialog.
Declaration
public ustring FileName { get; }
Property Value
| Type | Description |
|---|---|
| ustring | The name of the file. |