WordProcessingFileType class

WordProcessingFileType class

Defines Word Processing files that contain user information in plain text or rich text format. A plain text file format contains unformatted text and no font or page settings etc. can be applied. In contrast, a rich text file format allows formatting options such as setting fonts type, styles (bold, italic, underline, etc.), page margins, headings, bullets and numbers, and several other formatting features. Includes the following file types: WordProcessingFileType.Doc, WordProcessingFileType.Docm, WordProcessingFileType.Docx, WordProcessingFileType.Dot, WordProcessingFileType.Dotm, WordProcessingFileType.Dotx, WordProcessingFileType.Odt, WordProcessingFileType.Ott, WordProcessingFileType.Rtf, WordProcessingFileType.Txt. WordProcessingFileType.Md. Learn more about Word Processing formats here.

Inheritance: WordProcessingFileTypeFileTypeEnumeration

The WordProcessingFileType type exposes the following members:

Constructors

Constructor Description
init Serialization constructor

Properties

Property Description
file_format The file format
extension The file extension
family The file family
description File type description
UNKNOWN Unknown file type
DOC Files with .doc extension represent documents generated by Microsoft Word or other word processing documents in binary file format.
Learn more about this file format here.
DOCM DOCM files are Microsoft Word 2007 or higher generated documents with the ability to run macros.
Learn more about this file format here.
DOCX 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.
DOT Files with .DOT extension 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.
DOTM A file with DOTM extension represents template file created with Microsoft Word 2007 or higher.
Learn more about this file format here.
DOTX Files with DOTX extension 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.
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.
ODT 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.
OTT Files with OTT extension represent template documents generated by applications in compliance with the OASIS’ OpenDocument standard format.
Learn more about this file format here.
TXT A file with .TXT extension represents a text document that contains plain text in the form of lines.
Learn more about this file format here.
MD Text files created with Markdown language dialects is saved with .MD or .MARKDOWN file extension. MD files are saved in plain text format that uses Markdown language which also includes inline text symbols, defining how a text can be formatted such as indentations, table formatting, fonts, and headers.
Learn more about this file format here.

Methods

Method Description
equals Implements Enumeration.equals
compare_to Compares current object to other.
from_filename Returns FileType for specified fileName
from_extension Gets FileType for provided fileExtension
from_stream Returns FileType for provided document stream

See Also