WorkbookSaveOptions.DefaultFormat Property
Gets or sets the default file format used for saving a new document.
Namespace: DevExpress.XtraSpreadsheet
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
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 |
|
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.