Skip to main content
Row

DocumentFormat Members

A document format.

Constructors

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

Fields

Name Description
Csv static Comma Separated Values - the plain text format that uses commas as separators between cell values. File extension - .csv.
OpenXml static Microsoft Office Open XML format - the default file format starting with Microsoft Excel 2007. File extension - .xlsx.
Text static Tab Delimited Text - the plain text format that uses tab characters as separators between cell values. File extension - .txt.
Undefined static The document format is undefined.
Xls static Microsoft Excel 97-2003 binary file format (import/export), or Microsoft Excel 5.0/95 binary file format (import only). File extension - .xls.
Xlsb static Microsoft Excel 2007-2010 binary file format (BIFF12). File extension - .xlsb.
Xlsm static Microsoft Office Open XML macro-enabled format. File extension - .xlsm.
Xlsx static Microsoft Office Open XML format - the default file format starting with Microsoft Excel 2007. File extension - .xlsx.
Xlt static Microsoft Excel 97-2003 template file. File extension - .xlt.
Xltm static Microsoft Office Open XML macro-enabled template file. File extension - .xltm.
Xltx static Microsoft Office Open XML template file. File extension - .xltx.
XmlSpreadsheet2003 static XML Spreadsheet 2003 file format. File extension - .xml.

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 string that represents the DocumentFormat object.

Operators

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