Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

WorkbookSaveOptions.DefaultFormat Property

Gets or sets the default file format used for saving a new document.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

public DocumentFormat DefaultFormat { get; set; }

Property Value

Type Description
DocumentFormat

A DocumentFormat member representing the default file format. It equals DocumentFormat.OpenXml unless specified explicitly.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to DefaultFormat
WinForms Controls SpreadsheetControlOptions
.Save.DefaultFormat
Office File API DocumentOptions
.Save.DefaultFormat

Remarks

The WorkbookSaveOptions.DefaultFileName property specifies a file name to be suggested in the Save As dialog invoked for saving a document newly created in the SpreadsheetControl. The DefaultFormat property specifies a format for saving a new document. The file extension for the specified file format is added automatically.

See Also