SpreadsheetFormats

SpreadsheetFormats class

Encapsulates all binary, XML and textual Spreadsheet formats (excluding all textual delimiter-based formats with separator like CSV, TSV, semicolon-delimited etc.), in which the workbook can be saved. Includes the following formats: Xls, Xlt, Xlsx, Xlsm, Xlsb, Xltx, Xltm, Xlam, SpreadsheetML, Ods, Fods, Sxc, Dif, Csv, Tsv. Learn more about Spreadsheet formats here.

public class SpreadsheetFormats : DocumentFormatBase

Properties

Name Description
Extension { get; } Gets the file extension of the document format.
FormatFamily { get; } Gets the format family to which the document format belongs.
Id { get; } Gets the unique identifier for the format family.
Mime { get; } Gets the MIME type of the document format.
Name { get; } Gets the name of the format family.
static All { get; } Gets an enumerable collection of all SpreadsheetFormats.

Methods

Name Description
static FromExtension(string) Retrieves an instance of the specified type SpreadsheetFormats that has the specified file extension.
Equals(FormatFamilyBase) Determines whether this instance is equal to the specified FormatFamilyBase instance.
Equals(IDocumentFormat) Determines whether this instance is equal to the specified IDocumentFormat instance.
override Equals(object) Determines whether this instance is equal to the specified DocumentFormatBase instance.
override GetHashCode() Returns a hash code for the current object.
override ToString() Returns a string that represents the current object.
explicit operator Converts a string representing a file extension to a SpreadsheetFormats object.

Fields

Name Description
static readonly Csv Comma Separated Values (CSV). Learn more about this file format here.
static readonly Dif Data Interchange Format (DIF).
static readonly Fods Flat OpenDocument Spreadsheet (FODS).
static readonly Ods OpenDocument Spreadsheet (ODS). Learn more about this file format here.
static readonly SpreadsheetML SpreadsheetML — Microsoft Office Excel 2002 and Excel 2003 XML Format.
static readonly Sxc StarOffice or OpenOffice.org Calc XML Spreadsheet (SXC).
static readonly Tsv Tab-Separated Values (TSV). Learn more about this file format here.
static readonly Xlam Excel Add-in (XLAM).
static readonly Xls Excel 97-2003 Binary File Format (XLS). Learn more about this file format here.
static readonly Xlsb Excel Binary Workbook (XLSB). Learn more about this file format here.
static readonly Xlsm Office Open XML Workbook Macro-Enabled (XLSM). Learn more about this file format here.
static readonly Xlsx Office Open XML Workbook Macro-Free (XLSX). Learn more about this file format here.
static readonly Xlt Excel 97-2003 Template (XLT). Learn more about this file format here.
static readonly Xltm Office Open XML Template Macro-Enabled (XLTM). Learn more about this file format here.
static readonly Xltx Office Open XML Template Macro-Free (XLTX). Learn more about this file format here.

See Also