Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WorkbookSaveOptions.DefaultFormat Property

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

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.Spreadsheet.v24.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