Class
SaveFileDialog

Prompts the user to select a location for saving a file.

Definition

Namespace:Telerik.WinControls.Spreadsheet.UI

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

cs-api-definition
public class SaveFileDialog

Inheritance: objectSaveFileDialog

Constructors

SaveFileDialog()

Declaration

cs-api-definition
public SaveFileDialog()

Properties

Filter

Gets or sets the current file name filter string, which determines the choices that appear in the "Save as file type" or "Files of type" box in the dialog box.

Declaration

cs-api-definition
public string Filter { get; set; }

Property Value

string

SafeFileName

Gets or sets a string containing the file name selected in the file dialog box.

Declaration

cs-api-definition
public string SafeFileName { get; set; }

Property Value

string

Methods

OpenFile()

Opens the file with read/write permission selected by the user.

Declaration

cs-api-definition
public Stream OpenFile()

Returns

Stream

The read/write file selected by the user.

ShowDialog()

Runs a common dialog box with a default owner.

Declaration

cs-api-definition
public bool ShowDialog()

Returns

bool

true if the DialogResult is OK or Yes; otherwise false