Skip to main content
Version: 4.1

FileDialogLoadPathEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Provides data for the LoadPath event.

public class FileDialogLoadPathEventArgs : CancelEventArgs

Allows an application to filter the files and folders loaded by the FileDialog and FolderBrowserDialog components and to set the icon, creation date and modified date.

To skip a file or folder, set e.Cancel = true. To set a file's icon, or date, set the ImageSource, CreationTime or LastWriteTime properties.

Constructors

Instance member FileDialogLoadPathEventArgs(path, isDirectory)

Constructs a new instance of FileDialogLoadPathEventArgs.

NameTypeDescription
pathStringPath of the file or directory.
isDirectoryBooleanIndicates that the path is for a directory.

Properties

Instance member CreationTime

DateTime: Sets the creation DateTime of the file.

Instance member FileSize

Int64: Sets the file size in bytes.

Instance member ImageSource

String: Sets the name or path of the icon to display next to the file.

Instance member IsDirectory

Boolean: Returns true when the Path refers to a directory.

Instance member LastWriteTime

DateTime: Sets the last modified DateTime of the file.

Instance member Path

String: Returns the full path of the file or folder being loaded.

Used By

NameDescription
FileDialogLoadPathEventHandlerRepresents the method that will handle the LoadPath event.