Class RadSaveFileDialog
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadSaveFileDialog : FileDialogComponentBase, IFileExtensionFilterable
Constructors
RadSaveFileDialog()
Declaration
public RadSaveFileDialog()
Properties
CreatePrompt
Gets or sets a value indicating whether the dialog box prompts the user for permission to create a file if the user specifies a file that does not exist.
Declaration
public bool CreatePrompt { get; set; }
Property Value
System.
|
Remarks
true if the dialog box prompts the user before creating a file if the user specifies a file name that does not exist; false if the dialog box automatically creates the new file without prompting the user for permission. The default value is false.
DefaultExt
Gets or sets a value that specifies the default extension string to use to filter the list of files that are displayed.
Declaration
public string DefaultExt { get; set; }
Property Value
System.
|
Implements
EditingOptions
Determines how the files and folders in the Explorer
Declaration
public EditingOptions EditingOptions { get; set; }
Property Value
Filter
Gets or sets the filter string that describes the list of extensions to filter by.
Declaration
public string Filter { get; set; }
Property Value
System.
|
Implements
FilterIndex
Gets or sets the currently selected extension filter from the extensions described in the Filter property. The index value of the first filter entry is 1.
Declaration
public int FilterIndex { get; set; }
Property Value
System.
|
Implements
OverwritePrompt
Gets or sets a value indicating whether the Save As dialog box displays a warning if the user specifies a file name that already exists.
Declaration
public bool OverwritePrompt { get; set; }
Property Value
System.
|
Remarks
true if the dialog box prompts the user before overwriting an existing file if the user specifies a file name that already exists; false if the dialog box automatically overwrites the existing file without prompting the user for permission. The default value is true.
SaveFileDialogForm
Declaration
public RadSaveFileDialogForm SaveFileDialogForm { get; }
Property Value
SaveFileDialogViewModel
Declaration
public SaveFileDialogViewModel SaveFileDialogViewModel { get; }
Property Value
Methods
CreateFileDialogForm()
Declaration
protected override FileDialogFormBase CreateFileDialogForm()
Returns
Overrides
OpenFile()
Creates a read-write file stream for the filename selected by the user using RadSaveFileDialog" />.
Declaration
[SecurityCritical]
public Stream OpenFile()
Returns
System. A new System. |
Exceptions
System. Selected file is null. |
System. Selected file is empty string, contains only white space, contains one or more invalid characters, or refers to a non-file device. |
System. Selected file refers to a non-file device. |
System. Selected file cannot be found, such as when mode is FileMode.Truncate or FileMode.Open, and the file specified by path does not exist. The file must already exist in these modes. |
System. An I/O error occurred or the stream has been closed. |
System. The caller does not have the required permission. |
System. Selected file is invalid, such as being on an unmapped drive. |
System. The access requested is not permitted by the operating system for the specified path, such as when access is Write or ReadWrite and the file or directory is set for read-only access. |
System. The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters. |
System. The specified mode contains an invalid value. |