New to Telerik UI for WinForms? Start a free 30-day trial

Wraps a Windows Forms save-file dialog and exposes its filter, selected path, and stream APIs.

Definition

Namespace:Telerik.WinControls.UI.Diagrams

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class SaveFileDialog

Inheritance: objectSaveFileDialog

Constructors

C#
public SaveFileDialog()

Properties

Gets or sets the file-type filter displayed by the underlying dialog.

C#
public string Filter { get; set; }

Gets or sets the underlying dialog's FileName path; despite this property's name, the getter returns the path rather than only the base file name.

C#
public string SafeFileName { get; set; }

Methods

Opens the selected destination file for writing.

C#
public Stream OpenFile()
Returns:

Stream

The writable stream opened by the underlying dialog.

Displays the dialog and reports whether the user accepted the selection.

C#
public bool ShowDialog()
Returns:

bool

true when the underlying dialog returns OK or Yes.