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

Wraps a WinForms save-file dialog and exposes its result as a Boolean.

Definition

Namespace:Telerik.WinControls.RichTextEditor.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class SaveFileDialog

Inheritance: objectSaveFileDialog

Constructors

C#
public SaveFileDialog()

Properties

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

C#
public string Filter { get; set; }

Gets or sets the selected full file path. Despite the property name, this wrapper maps to the underlying FileName property and includes the directory.

C#
public string SafeFileName { get; set; }

Methods

Opens the selected destination and returns its stream. Call after ShowDialog() returns true; the caller owns and should dispose the returned stream.

C#
public Stream OpenFile()
Returns:

Stream

A stream for the selected destination.

Shows the wrapped dialog and reports whether the user confirmed a destination.

C#
public bool ShowDialog()
Returns:

bool

true only when the wrapped dialog returns OK.