Skip to main content

DocumentFormat Members

A document format.

Constructors

Name Description
DocumentFormat(Int32) Initializes a new instance of the DocumentFormat class with the specified value.

Fields

Name Description
Doc static MS Word 97-2003 binary file format.
Docm static Office Open XML WordprocessingML macro-enabled document.
Dot static Word 97-2007 template.
Dotm static Office Open XML WordprocessingML macro-enabled template.
Dotx static Office Open XML WordprocessingML macro-free template.
ePub static EPUB® - standard format for electronic books and other digital publications. Limited support.
FlatOpc static Microsoft Word XML Document file format.
FlatOpcMacroEnabled static Microsoft Word XML Macro-Enabled Document file format.
FlatOpcMacroEnabledTemplate static Open Packaging Conventions Office Open XML Macro-Enabled Template file format.
FlatOpcTemplate static Microsoft Word XML Template file format.
Html static The HTML format.
Mht static The MHT format - web page archive format used to save HTML code with resources represented by external links (images etc.), in a single file
OpenDocument static The OpenDocument text format (.odt, implemented by OpenOffice.org office suite).
OpenXml static The OpenXML file format (aka default MS Office 2007 format or .docx)
PlainText static The plain text format.
Rtf static The Rich Text Format (RTF).
Undefined static The document’s format is undefined.
WordML static The WordprocessingML format (.xml, implemented in MS Office 2003).

Methods

Name Description
Equals(DocumentFormat) Determines whether the specified object is equal to the current DocumentFormat instance.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current DocumentFormat instance.
GetHashCode() Gets the hash code (a number) that corresponds to the value of the current DocumentFormat object.
GetType() Gets the Type of the current instance. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a human-readable string that represents the DocumentFormat object.

Operators

Name Description
Equality(DocumentFormat, DocumentFormat) static Compares two DocumentFormat objects for equality.
Inequality(DocumentFormat, DocumentFormat) static Compares two DocumentFormat objects to determine whether they are not equal.
See Also