FileType

FileType class

Represents file type.

public sealed class FileType : IEquatable<FileType>

Properties

Name Description
Extension { get; } Filename suffix (including the period “.”) e.g. “.doc”.
FileFormat { get; } File type name e.g. “Microsoft Word Document”.

Methods

Name Description
static FromExtension(string) Maps file extension to file type.
Equals(FileType) Determines whether the current FileType is the same as specified FileType object.
override Equals(object) Determines whether the current FileType is the same as specified object.
override GetHashCode() Returns the hash code for the current FileType object.
override ToString() Returns a string that represents the current object.
static GetSupportedFileTypes() Retrieves supported file types
operator == Determines whether two FileType objects are the same.
operator != Determines whether two FileType objects are not the same.

Fields

Name Description
static readonly AZW3 WordPerfect Document (.wpd)
static readonly BMP Bitmap Image File (.bmp) is used to store bitmap digital images. These images are independent of graphics adapter and are also called device independent bitmap (DIB) file format. Learn more about this file format here.
static readonly CDR CorelDraw Vector Graphic Drawing (.cdr) is a vector drawing image file that is natively created with CorelDRAW for storing digital image encoded and compressed. Such a drawing file contains text, lines, shapes, images, colours and effects for vector representation of image contents. Learn more about this file format here.
static readonly CGM Computer Graphics Metafile (.cgm) is a free, platform-independent, international standard metafile format for storing and exchanging of vector graphics (2D), raster graphics, and text. CGM uses object-oriented approach and many function provisions for image production. Learn more about this file format here.
static readonly CMX CorelDRAW Metafile Exchange Image File (.cmx)
static readonly CSV Comma Separated Values File (.csv) represents plain text files that contain records of data with comma separated values. Learn more about this file format here.
static readonly DCM DICOM Image (.dcm) represents digital image which stores medical information of patients such as MRIs, CT scans and ultrasound images. Learn more about this file format here.
static readonly DJVU DjVu Image (.djvu) is a graphics file format intended for scanned documents and books especially those which contain the combination of text, drawings, images and photographs. Learn more about this file format here.
static readonly DOC Microsoft Word Document (.doc) represents documents generated by Microsoft Word or other word processing documents in binary file format. Learn more about this file format here.
static readonly DOCM Word Open XML Macro-Enabled Document (.docm) is a Microsoft Word 2007 or higher generated documents with the ability to run macros. Learn more about this file format here.
static readonly DOCX Microsoft Word Open XML Document (.docx) is a well-known format for Microsoft Word documents. Introduced from 2007 with the release of Microsoft Office 2007, the structure of this new Document format was changed from plain binary to a combination of XML and binary files. Learn more about this file format here.
static readonly DOT Word Document Template (.dot) are template files created by Microsoft Word to have preformatted settings for generation of further DOC or DOCX files. Learn more about this file format here.
static readonly DOTM Word Open XML Macro-Enabled Document Template (.dotm) represents template file created with Microsoft Word 2007 or higher. Learn more about this file format here.
static readonly DOTX Word Open XML Document Template (.dotx) are template files created by Microsoft Word to have preformatted settings for generation of further DOCX files. Learn more about this file format here.
static readonly EMF Enhanced Windows Metafile (.emf) represents graphical images device-independently. Meta-files of EMF comprises of variable-length records in chronological order that can render the stored image after parsing on any output device. Learn more about this file format here.
static readonly EPS Encapsulated PostScript File (.eps) describes an Encapsulated PostScript language program that describes the appearance of a single page. Learn more about this file format here.
static readonly GIF Graphical Interchange Format File (.gif) is a type of highly compressed image. For each image GIF typically allow up to 8 bits per pixel and up to 256 colours are allowed across the image. Learn more about this file format here.
static readonly JPEG JPEG Image (.jpeg) is a type of image format that is saved using the method of lossy compression. The output image, as result of compression, is a trade-off between storage size and image quality. Learn more about this file format here.
static readonly JPG JPEG Image (.jpg) is a type of image format that is saved using the method of lossy compression. The output image, as result of compression, is a trade-off between storage size and image quality. Learn more about this file format here.
static readonly ODG OpenDocument Graphic File (.odg) is used by Apache OpenOffice’s Draw application to store drawing elements as a vector image. Learn more about this file format here.
static readonly ODP OpenDocument Presentation (.odp) represents presentation file format used by OpenOffice.org in the OASISOpen standard. Learn more about this file format here.
static readonly ODS OpenDocument Spreadsheet (.ods) stands for OpenDocument Spreadsheet Document format that are editable by user. Data is stored inside ODF file into rows and columns. Learn more about this file format here.
static readonly ODT OpenDocument Text Document (.odt) are type of documents created with word processing applications that are based on OpenDocument Text File format. Learn more about this file format here.
static readonly OTP OpenDocument Presentation Template (.otp) represents presentation template files created by applications in OASIS OpenDocument standard format. Learn more about this file format here.
static readonly OTS OpenDocument Spreadsheet Template (.ots)
static readonly OTT OpenDocument Document Template (.ott) represents template documents generated by applications in compliance with the OASIS’ OpenDocument standard format. Learn more about this file format here.
static readonly PCL Printer Command Language Document (.pcl)
static readonly PDF Portable Document Format File (.pdf) is a type of document created by Adobe back in 1990s. The purpose of this file format was to introduce a standard for representation of documents and other reference material in a format that is independent of application software, hardware as well as Operating System. Learn more about this file format here.
static readonly PFX Personal Information Exchange (.pfx) file password protected file certificate commonly used for code signing your application. Learn more about this file format here.
static readonly PNG Portable Network Graphic (.png) is a type of raster image file format that use lossless compression. This file format was created as a replacement of Graphics Interchange Format (GIF) and has no copyright limitations. Learn more about this file format here.
static readonly POT PowerPoint Template (.pot) represents Microsoft PowerPoint template files created by PowerPoint 97-2003 versions. Learn more about this file format here.
static readonly POTM PowerPoint Open XML Macro-Enabled Presentation Template (.potm) are Microsoft PowerPoint template files with support for Macros. POTM files are created with PowerPoint 2007 or above and contains default settings that can be used to create further presentation files. Learn more about this file format here.
static readonly POTX PowerPoint Open XML Presentation Template (.potx) represents Microsoft PowerPoint template presentations that are created with Microsoft PowerPoint 2007 and above. Learn more about this file format here.
static readonly PPS PowerPoint Slide Show (.pps) are created using Microsoft PowerPoint for Slide Show purpose. PPS file reading and creation is supported by Microsoft PowerPoint 97-2003. Learn more about this file format here.
static readonly PPSM PowerPoint Open XML Macro-Enabled Slide (.ppsm) represents Macro-enabled Slide Show file format created with Microsoft PowerPoint 2007 or higher. Learn more about this file format here.
static readonly PPSX PowerPoint Open XML Slide Show (.ppsx) files are created using Microsoft PowerPoint 2007 and above for Slide Show purpose. Learn more about this file format here.
static readonly PPT PowerPoint Presentation (.ppt) represents PowerPoint file that consists of a collection of slides for displaying as SlideShow. It specifies the Binary File Format used by Microsoft PowerPoint 97-2003. Learn more about this file format here.
static readonly PPTM PowerPoint Open XML Macro-Enabled Presentation are Macro-enabled Presentation files that are created with Microsoft PowerPoint 2007 or higher versions. Learn more about this file format here.
static readonly PPTX PowerPoint Open XML Presentation (.pptx) are presentation files created with popular Microsoft PowerPoint application. Unlike the previous version of presentation file format PPT which was binary, the PPTX format is based on the Microsoft PowerPoint open XML presentation file format. Learn more about this file format here.
static readonly PS PostScript File (.ps)
static readonly PSD Adobe Photoshop Document (.psd) represents Adobe Photoshop’s native file format used for graphics designing and development. Learn more about this file format here.
static readonly RTF Rich Text Format File (.rtf) represents a method of encoding formatted text and graphics for use within applications. Learn more about this file format here.
static readonly SevenZip High compressed archive (.7z) compressing files and folders with a high compression ratio. Learn more about this file format here.
static readonly SVG Scalable Vector Graphics File (.svg) is a Scalar Vector Graphics file that uses XML based text format for describing the appearance of an image. Learn more about this file format here.
static readonly TAR Unix-based utility for collecting one or more files (.tar) is a archive that can hold one or more files or directories. Learn more about this file format here.
static readonly TIF Tagged Image File (.tif) represents raster images that are meant for usage on a variety of devices that comply with this file format standard. It is capable of describing bilevel, grayscale, palette-color and full-color image data in several color spaces. Learn more about this file format here.
static readonly TIFF Tagged Image File Format (.tiff) represents raster images that are meant for usage on a variety of devices that comply with this file format standard. It is capable of describing bilevel, grayscale, palette-color and full-color image data in several color spaces. Learn more about this file format here.
static readonly TSV Tab Separated Values File (.tsv) represents data separated with tabs in plain text format. Learn more about this file format here.
static readonly TXT Plain Text File (.txt) represents a text document that contains plain text in the form of lines. Learn more about this file format here.
static readonly Unknown Represents unknown file type.
static readonly VCF vCard File (.vcf) is a digital file format for storing contact information. The format is widely used for data interchange among popular information exchange applications. Learn more about this file format here.
static readonly WEBP WebP Image (.webp) is a modern raster web image file format that is based on lossless and lossy compression. It provides same image quality while considerably reducing the image size. Learn more about this file format here.
static readonly WMF Windows Metafile (.wmf) represents Microsoft Windows Metafile (WMF) for storing vector as well as bitmap-format images data. Learn more about this file format here.
static readonly WPD WordPerfect Document (.wpd)
static readonly XLS Excel Spreadsheet (.xls) represents Excel Binary File Format. Such files can be created by Microsoft Excel as well as other similar spreadsheet programs such as OpenOffice Calc or Apple Numbers. Learn more about this file format here.
static readonly XLSB Excel Binary Spreadsheet (.xlsb) specifies the Excel Binary File Format, which is a collection of records and structures that specify Excel workbook content. Learn more about this file format here.
static readonly XLSM Excel Open XML Macro-Enabled Spreadsheet (.xlsm) is a type of Spreadsheet files that support macros. Learn more about this file format here.
static readonly XLSX Microsoft Excel Open XML Spreadsheet (.xlsx) is a well-known format for Microsoft Excel documents that was introduced by Microsoft with the release of Microsoft Office 2007. Learn more about this file format here.
static readonly XLT Excel binary Template (.xlt) represents Excel Template File Format. Learn more about this file format here.
static readonly XLTM Excel Office OpenXML file Template (.xltm) represents Excel Template File Format. Learn more about this file format here.
static readonly ZIP Document ZIP archive (.zip) is an archive file format that supports lossless data compression. Can hold one or more files or directories. Learn more about this file format here.

Remarks

Learn more

See Also