Skip to main content
A newer version of this page is available. .

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.
ePub static EPUB® - standard format for electronic books and other digital publications.
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(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