A File object stores information about a file or a folder. To access a File object you
have to use the
Get property, that retrieves a
Files collection. The Files object contains a collection of
File objects. For instance the following sample shows how to select by code the
"WinNT" folder: ExFileView1.Get(AllItems)("WinNT").Selected
= True.
The File object supports the following properties and
methods.
| | Name | Description | |
| | Accessed | Retrieves the date when the file was last read from, written to, or for executable files, run. | |
| | BackColor | Returns or sets the background color of the file. | |
| | Bold | Specifies whether the file should appear in bold. | |
| | Checked | Specifies whether the file is checked or unchecked. | |
| | Children | Returns a collection with child objects of the current object. | |
| | Created | Retrieves the date when the file or directory was created. | |
| | Folder | Specifies whether the object is a file or a folder. | |
| | ForeColor | Returns or sets the foreground color of the file. | |
| | FullName | Retrieves the full name of the file. | |
| | Ghosted | Returns or sets a value that determines whether a file appears as unavailable (it appears dimmed). | |
| | Modified | Retrieves the date when the file was last written to, truncated, or overwritten. | |
| | Name | Retrieves the file's name. | |
| | ParseName | Retrieves the file's parse name. | |
| | RelativeName | Retrieves the relative name of the file. | |
| | Selected | Specifies whether the file is selected or unselected. | |
| | Size | Retrieves the size of the file. | |
| | State | Indicates the file's changed state. | |
| | Type | Retrieves or sets a value that indicates the string gets displayed on the Type column. | |