Represents a file in a user table.
| C# |
public struct FileItem
| All Members | Constructors | Methods | Properties | Fields | |
| Icon | Member | Description |
|---|---|---|
| FileItem(array<Byte>[]()[], DataItemContext) |
Creates a new instance from raw data.
| |
| FileItem(String, DataItemContext) |
Creates a new instance from the full path to a file.
| |
| ContentLength |
Gets the size of the file.
| |
| Contents |
Gets the contents of the file.
| |
| Context |
Gets an object containing contextual information about the file.
| |
| CreateFromFile(Boolean, DataItemContext) |
Prompts the user to choose one or more files and creates item instances from them.
| |
| DefaultIcon |
Gets the icon for unrecognized file types.
| |
| DefaultUIEditor |
Gets the default UI editor.
| |
| DisplayName |
Gets the item's display name.
| |
| Equality(FileItem, FileItem) |
Determines whether two objects represent the same value.
| |
| Equals(Object) |
Determines whether this instance represents the same value as another object.
(Overrides ValueType.Equals(Object).) | |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetAssociatedIcon(String) |
Gets the icon associated with a file name.
| |
| GetFile(Stream) |
Reads the file represented by this instance and saves it to a stream.
| |
| GetFileSizeText(Int64) |
Gets text containing the file size in a format suitable for display (e.g. "12.42" KB).
| |
| GetHashCode()()() |
Gets the hash code for this object.
(Overrides ValueType.GetHashCode()()().) | |
| GetOpenFileDialog(Boolean) |
Gets an Open File dialog for choosing a file.
| |
| GetSaveFileDialog()()() |
Gets a Save File dialog for saving a file.
| |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Header |
Gets the header, which includes information about the file such as its name and size.
| |
| Icon |
Gets the icon associated with the file name.
| |
| Inequality(FileItem, FileItem) |
Determines whether two objects represent different values.
| |
| IsCompressed |
Gets whether the file is compressed.
| |
| IsEmpty |
Gets whether the instance is empty and does not represent a file.
| |
| MaxHeaderLength |
Maximum header length.
| |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Name |
Gets the filename (excluding the path).
| |
| NameWithoutExtension |
Gets the filename without file extension (excluding the path).
| |
| RawValue |
Gets raw data for storing in the database, which can be used to reconstruct the instance.
| |
| SaveToFile(FileItem) |
Prompts the user to choose a file and saves the item to it.
| |
| SaveToFile(String) |
Writes the item's decompressed contents to a file.
| |
| SetFile(String, Boolean, array<Byte>[]()[]) |
Sets the file represented by this instance.
| |
| ToString()()() |
Gets a string representation of this object.
(Overrides ValueType.ToString()()().) | |
| TryParse(Object, FileItem%) |
Parses/converts a value if possible.
| |
| TryParse(Object, DataItemContext, FileItem%) |
Parses/converts a value if possible.
|