Class FileListBoxItem
Implements item of the FileListBox control.
public class FileListBoxItem : TreeViewItem, IBaseObjectWithAttr, IBaseObjectWithId, IBaseObject, INotifyPropertyChanged, IComparable<ListControlItem>, IComparable<TreeViewItem>
- Inheritance
-
FileListBoxItem
- Implements
Constructors
- FileListBoxItem(FileListBox, string?, string?, Action?)
Initializes a new instance of the FileListBoxItem class.
- FileListBoxItem(string?, string?, Action?)
Initializes a new instance of the FileListBoxItem class. This is an obsolete constructor. Use the constructor that includes the owner parameter instead to ensure proper initialization of the item within a FileListBox context.
Properties
- DateFormat
Gets the date format string used for displaying the last modified date of files and other date-time values.
- DateModifiedColumnCell
Gets the cell that displays the date and time when the item was last modified, if available.
- ExtensionLower
Gets extension in the lower case and without "." character.
- FileListBox
Gets the instance of the associated FileListBox, if one is set.
- FormatProvider
Gets the format provider used to control formatting operations for this item.
- Info
Gets the FileSystemInfo object representing the file or directory associated with the current instance.
- IsFile
Gets a value indicating whether the current item represents a file.
- IsFolder
Gets a value indicating whether the current path represents a folder.
- LastWriteTimeText
Gets the last write time of the associated file or item as a formatted string. Returns an empty string if the last write time is not available.
- NameColumnCell
Gets the cell associated with the name column, if available.
- Path
Gets or sets path to the file.
- SizeColumnCell
Gets the cell that represents the size column for the current item, if available.
- SizeText
Gets the string representation of the size if it is available; otherwise, returns an empty string.
- TimeFormat
Gets the time format string used for displaying the last modified time of files and other date-time values.
Methods
- CompareByIsFolder(FileListBoxItem, FileListBoxItem)
Compares two FileListBoxItem objects based on whether they represent folders.
- ComparisonByDateModified(FileListBoxItem, FileListBoxItem)
Compares two FileListBoxItem objects based on their date modified and other criteria.
- ComparisonByDateModifiedDescending(FileListBoxItem, FileListBoxItem)
Same as ComparisonByDateModified(FileListBoxItem, FileListBoxItem), but compares in descending order.
- ComparisonBySize(FileListBoxItem, FileListBoxItem)
Compares two FileListBoxItem objects based on their folder status, size, and text.
- ComparisonBySizeDescending(FileListBoxItem, FileListBoxItem)
Same as ComparisonBySize(FileListBoxItem, FileListBoxItem), but compares in descending order.
- ComparisonByText(FileListBoxItem, FileListBoxItem)
Compares two FileListBoxItem objects based on their folder status and text values.
- ComparisonByTextDescending(FileListBoxItem, FileListBoxItem)
Same as ComparisonByText(FileListBoxItem, FileListBoxItem), but compares in descending order.
- DateTimeToString(DateTime?)
Converts a nullable DateTime value to its string representation, including both date and time components.
- SetColumnValues()
Sets the values of the columns for this item based on its properties and the specified FileListBox owner.