FileType

FileType class

Represents file type. Provides methods to obtain list of all file types supported by GroupDocs.Merger, detect file type by extension etc.

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
static IsArchive(FileType) Determines whether input FileType is archive format.
static IsAudio(FileType) Determines whether input FileType is audio format.
static IsImage(FileType) Determines whether input FileType is image format.
static IsText(FileType) Determines whether input FileType is primitive text format.
operator == Determines whether two FileType objects are the same.
operator != Determines whether two FileType objects are not the same.

Fields

Name Description
static BMP Bitmap Image File (.bmp) represent files that are used to store bitmap digital images. Learn more about this file format here.
static BZ2 Bzip2 Compressed File (.bz2)
static 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 DOC Microsoft Word Document (.doc) represent documents generated by Microsoft Word or other word processing documents in binary file format. Learn more about this file format here.
static DOCM Word Open XML Macro-Enabled Document (.docm) files are Microsoft Word 2007 or higher generated documents with the ability to run macros. Learn more about this file format here.
static 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 DOT Word Document Template (.dot) files are template files created by Microsoft Word to have pre-formatted settings for generation of further DOC or DOCX files. Learn more about this file format here.
static 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 DOTX Word Open XML Document Template (.dotx) are template files created by Microsoft Word to have pre-formatted settings for generation of further DOCX files. Learn more about this file format here.
static EMF Enhanced Windows Metafile (.emf)
static EPUB Open eBook File (.epub) are an e-book file format that provide a standard digital publication format for publishers and consumers. The format has been so common by now that it is supported by many e-readers and software applications. Learn more about this file format here.
static ERR Error Log File (.err) is a text file that contains error messages generated by a program. Learn more about this file format here.
static GIF Graphical Interchange Format File (.gif)
static GZ G-Zip Compressed File (.gz)
static HTML Hypertext Markup Language File (.html) is the extension for web pages created for display in browsers. Learn more about this file format here.
static 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 JPG JPEG Image (.jpg)
static MHT MHTML Web Archive (.mht) is a web page archive format that can be created by a number of different applications. Learn more about this file format here.
static MHTML MIME HTML File (.mhtml) is a web page archive format that can be created by a number of different applications. Learn more about this file format here.
static MP3 Files with .mp3 extension are digitally encoded file formats for audio files that are formally based on the MPEG-1 Audio Layer III or MPEG-2 Audio Layer III. It was developed by the Moving Picture Experts Group (MPEG) that uses Layer 3 audio compression. Compression achieved by MP3 file format is 1/10th the size of .WAV or .AIF files. Learn more about this file format here.
static ODP OpenDocument Presentation (.odp) represents presentation file format used by OpenOffice.org in the OASISOpen standard. Learn more about this file format here.
static ODS OpenDocument Spreadsheet (.ods) Learn more about this file format here.
static ODT OpenDocument Text Document (.odt) files 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 ONE OneNote Document (.one) files are created by Microsoft OneNote application. OneNote lets you gather information using the application as if you are using your draftpad for taking notes. Learn more about this file format here.
static 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 OTT OpenDocument Document Template (.ott) represent template documents generated by applications in compliance with the OASIS’ OpenDocument standard format. Learn more about this file format here.
static PDF Portable Document Format File (.pdf) isa file format that was to introduced as 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 PNG Portable Network Graphic (.png) is a type of raster image file format that use loseless compression. Learn more about this file format here.
static PPS PowerPoint Slide Show (.pps) is a file 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 PPSX PowerPoint Open XML Slide Show (.ppsx) is a file created using Microsoft PowerPoint 2007 and above for Slide Show purpose. Learn more about this file format here.
static 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 PPTX PowerPoint Open XML Presentation (.pptx) is a presentation file 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 PS PostScript File (.ps)
static RAR Roshal ARchive Compressed File (.rar)
static RTF Rich Text Format File (.rtf) introduced and documented by Microsoft, the Rich Text Format (RTF) represents a method of encoding formatted text and graphics for use within applications. Learn more about this file format here.
static SevenZ 7-Zip Compressed File (.7z)
static SVG Scalable Vector Graphics File (.svg)
static SVGZ Scalable Vector Graphics Compressed File (.svgz)
static TAR Consolidated Unix File Archive (.tar)
static TEX LaTeX Source Document (.tex) is a language that comprises of programming as well as mark-up features, used to typeset documents. Learn more about this file format here.
static TIF Tagged Image File (.tif)
static TIFF Tagged Image File Format (.tiff)
static TSV Tab Separated Values File (.tsv) represents data separated with tabs in plain text format. Learn more about this file format here.
static 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 Unknown Represents unknown file type.
static VDX Visio Drawing XML File (.vdx)is a drawing or chart created in Microsoft Visio, but saved in XML format have .VDX extension. A Visio drawing XML file is created in Visio software, which is developed by Microsoft. Learn more about this file format here.
static VSDM Visio Macro-Enabled Drawing (.vsdm) are drawing files created with Microsoft Visio application that supports macros. VSDM files are OPC/XML drawings that are similar to VSDX, but also provide the capability to run macros when the file is opened. Learn more about this file format here.
static VSDX Visio Drawing (.vsdx) represents Microsoft Visio file format introduced from Microsoft Office 2013 onwards. It was developed to replace the binary file format, .VSD, which is supported by earlier versions of Microsoft Visio. Learn more about this file format here.
static VSSM Visio Macro-Enabled Stencil File (.vssm) are Microsoft Visio Stencil files that support provide support for macros. A VSSM file when opened allows to run the macros to achieve desired formatting and placement of shapes in a diagram. Learn more about this file format here.
static VSSX Visio Stencil File (.vssx) are drawing stencils created with Microsoft Visio 2013 and above. The VSSX file format can be opened with Visio 2013 and above. Visio files are known for representation of a variety of drawing elements such as collection of shapes, connectors, flowcharts, network layout, UML diagrams, Learn more about this file format here.
static VSTM Visio Macro-Enabled Drawing Template (.vstm) are template files created with Microsoft Visio that support macros. Unlike VSDX files, files created from VSTM templates can run macros that are developed in Visual Basic for Applications (VBA) code. Learn more about this file format here.
static VSTX Visio Drawing Template (.vstx) are drawing template files created with Microsoft Visio 2013 and above. These VSTX files provide starting point for creating Visio drawings, saved as .VSDX files, with default layout and settings. Learn more about this file format here.
static VSX Visio Stencil XML File (.vsx) refers to stencils that consist of drawings and shapes that are used for creating diagrams in Microsoft Visio. VSX files are saved in XML file format and was supported till Visio 2013. Learn more about this file format here.
static VTX Visio Template XML File (.vtx) is a Microsoft Visio drawing template that is saved to disc in XML file format. The template is aimed to provide a file with basic settings that can be used to create multiple Visio files of the same settings. Learn more about this file format here.
static WAV WAV, known for WAVE (Waveform Audio File Format), is a subset of Microsoft’s Resource Interchange File Format (RIFF) specification for storing digital audio files. The format doesn’t apply any compression to the bitstream and stores the audio recordings with different sampling rates and bitrates. It has been and is one of the standard format for audio CDs. Learn more about this file format here.
static XLAM Excel Macro-Enabled Add-In (.xlam)
static XLS Excel Spreadsheet (.xls) is a file that 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 XLSB Excel Binary Spreadsheet (.xlsb) file format 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 XLSM Excel Open XML Macro-Enabled Spreadsheet (.xlsm) is a type of Spreasheet files that support macros. Learn more about this file format here.
static 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 XLT Excel Template File (.xlt) are template files created with Microsoft Excel which is a spreadsheet application which comes as part of Microsoft Office suite. Microsoft Office 97-2003 supported creating new XLT files as well as opening these. Learn more about this file format here.
static XLTM Excel Open XML Macro-Enabled Spreadsheet Template (.xltm) represents files that are generated by Microsoft Excel as Macro-enabled template files. XLTM files are similar to XLTX in structure other than that the later doesn’t support creating template files with macros. Learn more about this file format here.
static XLTX Excel Open XML Spreadsheet Template (.xltx) files are based on the Office OpenXML file format specifications. It is used to create a standard template file that can be utilized to generate XLSX files that exhibit the same settings as specified in the XLTX file. Learn more about this file format here.
static XPS XML Paper Specification File (.xps) represents page layout files that are based on XML Paper Specifications created by Microsoft. Learn more about this file format here.
static ZIP Zipped File (.zip)

Remarks

Learn more

See Also