WordProcessingFormats

WordProcessingFormats structure

Encapsulates all WordProcessing formats. Includes the following file types: Doc, Docm, Docx, Dot, Dotm, Dotx, FlatOpc, Odt, Ott, Rtf, WordML. Learn more about Word Processing formats here.

public struct WordProcessingFormats : IDocumentFormat, IEquatable<WordProcessingFormats>

Properties

Name Description
Extension { get; } Returns an extension (without leading dot character) of this WordProcessing format in lower case
Mime { get; } Returns a MIME code for this format
Name { get; } Returns a formal full name of this WordProcessing format

Methods

Name Description
static FromExtension(string) Returns instance of WordProcessingFormats structure, associated to specified filename extension, or throws an exception, if extension cannot be properly parsed
Equals(IDocumentFormat) Determines whether this instance is equal to the other specified IDocumentFormat instance
override Equals(object) Determines whether this instance is equal to the other specified object, that is presumably of boxed WordProcessingFormats
Equals(WordProcessingFormats) Determines whether this instance is equal to the other specified WordProcessingFormats instance
override GetHashCode() Returns a hash-code, that is immutable for this instance
override ToString() Returns the name of this particular format, same as ‘Name’ property
operator == Checks two given WordProcessingFormats instances on equality
explicit operator Returns a byte value from underlying field of specified WordProcessingFormats instance (2 operators)
operator != Checks two given WordProcessingFormats instances on inequality

Fields

Name Description
static readonly Doc MS Word 97-2007 Binary File Format (DOC) represent documents generated by Microsoft Word or other word processing documents in binary file format. Learn more about this file format here.
static readonly Docm Office Open XML WordProcessingML 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 readonly Docx Office Open XML WordProcessingML Macro-Free 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 MS Word 97-2007 Template 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 readonly Dotm Office Open XML WordprocessingML Macro-Enabled Template (DOTM) represents template file created with Microsoft Word 2007 or higher. Learn more about this file format here.
static readonly Dotx Office Open XML WordprocessingML Macro-Free 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 readonly FlatOpc Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package
static readonly Odt Open Document Format 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 readonly Ott Open Document Format Text 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 readonly Rtf 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 readonly WordML Microsoft Office Word 2003 XML Format — WordProcessingML or WordML (.XML)
static readonly All Returns an internal class, that provides enumerable possibilities over all existing WordProcessing formats

Other Members

Name Description
class AllEnumerable Implements IEnumerable generic interface, that enables a ‘foreach’ possibility for the WordProcessingFormats type

Remarks

MIME codes are grabbed from the given resources: https://filext.com/faq/office_mime_types.html https://docs.microsoft.com/en-us/previous-versions//cc179224(v=technet.10)

See Also