FileType class

FileType class

Represents a file type.

Learn more:

The FileType type exposes the following members:

Methods

Method Description
equals Determines whether the current FileType is the same as the specified FileType object.
equals Determines whether the current FileType is the same as the specified object.
equals_file_type
equals_object
from_extension Maps file extension to file type.
get_hash_code Returns the hash code for the current FileType object.
get_supported_file_types Retrieves supported file types.
to_string Returns a string that represents the current object.

Properties

Property Description
extension The filename suffix, including the leading period, e.g., “.doc”.
file_format The file format name, for example “Microsoft Word Document”.

Fields

Field Description
UNKNOWN Represents unknown file type.
TIF Tagged Image File (.tif)
TIFF Tagged Image File Format (.tiff)
JPG JPEG Image (.jpg)
JPEG JPEG Image (.jpeg)
PNG Portable Network Graphic (.png)
GIF Graphical Interchange Format File (.gif)
BMP Bitmap Image File (.bmp)
JP2 JPEG 2000 Core Image File (.jp2)
HTM Hypertext Markup Language File (.htm)
HTML Hypertext Markup Language File (.html)
PDF Portable Document Format File (.pdf)
PPT PowerPoint Presentation (.ppt)
PPTX PowerPoint Open XML Presentation (.pptx)
ODP OpenDocument Presentation (.odp)
XLS Excel Spreadsheet (.xls)
XLSX Microsoft Excel Open XML Spreadsheet (.xlsx)
XLSM Excel Open XML Macro-Enabled Spreadsheet (.xlsm)
XLSB Excel Binary Spreadsheet (.xlsb)
CSV Comma Separated Values File (.csv)
TSV Tab Separated Values File (.tsv)
ODS OpenDocument Spreadsheet (.ods)
OTS OpenDocument Spreadsheet Template (.ots)
NUMBERS Apple Numbers Spreadsheet (.numbers)
MD Markdown Documentation File (.md)
DOC Microsoft Word Document (.doc)
DOCX Microsoft Word Open XML Document (.docx)
DOCM Word Open XML Macro-Enabled Document (.docm)
DOT Word Document Template (.dot)
DOTX Word Open XML Document Template (.dotx)
DOTM Word Open XML Macro-Enabled Document Template (.dotm)
RTF Rich Text Format File (.rtf)
TXT Plain Text File (.txt)
ODT OpenDocument Text Document (.odt)
OTT OpenDocument Document Template (.ott)

Guides

Task guides that use FileType:

See Also