Class RadSaveFileDialog
Represents a dialog that allows user selection of filename for file to be saved.
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.FileDialogs.dll
Syntax
[TelerikToolboxCategory("File Dialogs")]
public class RadSaveFileDialog : DialogWindowBase, INotifyLayoutChange, IWindowDragAware, IDragAware, IClickAware, IFileExtensionFilterable, IThemable
Constructors
RadSaveFileDialog()
Properties
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.String
|
Implements
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.String
|
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.Int32
|
Implements
Methods
OnCreateAutomationPeer()
Create the automation peer for this class.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
|
Overrides
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
|
OpenFile()
Creates a read-write file stream for the filename selected by the user using RadSaveFileDialog" />.
Declaration
public Stream OpenFile()
Returns
System.IO.Stream
A new System.IO.Stream that contains the selected file. |
Exceptions
System.ArgumentNullException
Selected file is null. |
System.ArgumentException
Selected file is empty string, contains only white space, contains one or more invalid characters, or refers to a non-file device. |
System.NotSupportedException
Selected file refers to a non-file device. |
System.FileNotFoundException
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.IOException
An I/O error occurred or the stream has been closed. |
System.SecurityException
The caller does not have the required permission. |
System.DirectoryNotFoundException
Selected file is invalid, such as being on an unmapped drive. |
System.UnauthorizedAccessException
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.PathTooLongException
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.ArgumentOutOfRangeException
The specified mode contains an invalid value. |
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()