Skip to main content

WorkbookSaveOptions.DefaultFormat Property

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

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.Spreadsheet.v23.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

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:

Object Type Path to DefaultFormat
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