Class SaveDialog
The SaveDialog provides an interactive dialog box for users to pick a file to
save.
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
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(). 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.
Declaration
public SaveDialog()
SaveDialog(ustring, ustring)
Initializes a new SaveDialog.
Declaration
public SaveDialog(ustring title, ustring message)
Parameters
Type | Name | Description |
---|---|---|
NStack.ustring | title | The title. |
NStack.ustring | message | The message. |
Properties
FileName
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 |
---|---|
NStack.ustring | The name of the file. |
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize