UtilFormsShowSaveFileDialog Method

Opens a SaveFileDialog dialog and returns the selected filepath.

Definition

Namespace: DevCase.Core.Application.Forms
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string ShowSaveFileDialog(
	string fileExtension,
	string defaultFilename,
	string filter,
	string dialogTitle = "Save File...",
	string initialDirectory = ""
)

Parameters

fileExtension  String
The file extension.
defaultFilename  String
The default filename.
filter  String
The file filter.
dialogTitle  String  (Optional)
The dialog title.
initialDirectory  String  (Optional)
The dialog's initial directory.

Return Value

String
If the dialog succeed, the return value is the selected filepath of the SaveFileDialog, if the dialog is canceled, the return value is String.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also