FileDialogLoadPathEventArgs

Wisej.Web.FileDialogLoadPathEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.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

FileDialogLoadPathEventArgs(path, isDirectory)

Constructs a new instance of FileDialogLoadPathEventArgs.

Name
Type
Description

path

Path of the file or directory.

isDirectory

Indicates that the path is for a directory.

Properties

CreationTime

DateTime: Sets the creation DateTime of the file.

FileSize

Int64: Sets the file size in bytes.

ImageSource

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

IsDirectory

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

LastWriteTime

DateTime: Sets the last modified DateTime of the file.

Path

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

Used By

Name
Description

Represents the method that will handle the LoadPath and LoadPath events.

Last updated

Was this helpful?