Class FileDialogComponentBase
Inheritance
Namespace: Telerik.WinControls.FileDialogs
Assembly: Telerik.WinControls.UI.dll
Syntax
public abstract class FileDialogComponentBase : Component
Constructors
FileDialogComponentBase()
Declaration
public FileDialogComponentBase()
Properties
CustomPlaces
Gets or sets the collection of custom places.
Declaration
public IList<string> CustomPlaces { get; }
Property Value
System.
|
DialogForm
ExpandToCurrentDirectory
Gets or sets a value indicating whether the main navigation pane expands and brings into view the current directory.
Declaration
public bool ExpandToCurrentDirectory { get; set; }
Property Value
System.
|
FileName
Gets or sets a string containing the selected file name, including the path. Short file name without the full path is not supported.
Declaration
public string FileName { get; set; }
Property Value
System.
|
InitialDirectory
Gets or sets the initial directory.
Declaration
public string InitialDirectory { get; set; }
Property Value
System.
|
InitialSelectedLayout
Gets or sets the initialLayout
Declaration
public LayoutType InitialSelectedLayout { get; set; }
Property Value
RestoreDirectory
Gets or sets a value indicating whether the dialog box restores the directory to the previously selected directory before closing.
Declaration
public bool RestoreDirectory { get; set; }
Property Value
System.
|
ShowHiddenFiles
Gets or sets a boolean value indicating whether hidden files and folders should be visible in the Dialog.
Declaration
public bool ShowHiddenFiles { get; set; }
Property Value
System.
|
ShowNetworkLocations
Gets or sets a value indicating whether the dialog shows network computers in the navigation tree.
Declaration
public bool ShowNetworkLocations { get; set; }
Property Value
System.
|
Methods
CreateFileDialogForm()
OpenFileInternal(FileMode, FileAccess)
Creates a System.
Declaration
protected Stream OpenFileInternal(FileMode fileMode, FileAccess fileAccess)
Parameters
System.
|
System.
|
Returns
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. |
ShowDialog()
Opens modal DialogWindow in case it hasn't been already opened.
Declaration
public DialogResult ShowDialog()
Returns
System. The DialogResult value. |
ShowDialog(IWin32Window)
Opens modal DialogWindow in case it hasn't been already opened.
Declaration
public DialogResult ShowDialog(IWin32Window owner)
Parameters
System.
|
Returns
System. The DialogResult value. |
Events
DirectoryNavigating
DirectoryRequesting
Occurs when the DirectoryInfo wrapper is about to be created.
Declaration
public event EventHandler<DirectoryRequestingEventArgs> DirectoryRequesting
Event Type
System.
|
ExceptionRaised
Occurs when the System.
Declaration
public event EventHandler<FileBrowserExceptionRaisedEventArgs> ExceptionRaised
Event Type
System.
|
ShellContextMenuOpening
Occurs when context menu is about to open.
Declaration
public event EventHandler<ContextMenuOpeningEventArgs> ShellContextMenuOpening
Event Type
System.
|