Skip to main content

FileIcon Class

Namespace: Velopack.Windows
Assembly: Velopack
Assembly Version: 0.0.626+6f1a94e

Enables extraction of icons for any file type from the Shell.

[ExcludeFromCodeCoverage]
public class FileIcon

Inheritance: object → FileIcon

Attributes: ExcludeFromCodeCoverageAttribute

Constructors

NameDescription
FileIcon()Constructs a new, default instance of the FileIcon class. Specify the filename and call GetInfo() to retrieve an icon.
FileIcon(string)Constructs a new instance of the FileIcon class and retrieves the icon, display name and type name for the specified file.
FileIcon(string, FileIcon.SHGetFileInfoConstants)Constructs a new instance of the FileIcon class and retrieves the information specified in the flags.

Properties

NameDescription
DisplayNameGets the display name for the selected file if the SHGFI_DISPLAYNAME flag was set.
FileNameGets/sets the filename to get the icon for
FlagsGets/sets the flags used to extract the icon
ShellIconGets the icon for the chosen file
TypeNameGets the type name for the selected file if the SHGFI_TYPENAME flag was set.

Nested Types

NameDescription
FileIcon.SHGetFileInfoConstants

Documentation generated by MdDocs