Back to Devexpress

WorkbookSaveOptions.DefaultFormat Property

officefileapi-devexpress-dot-xtraspreadsheet-dot-workbooksaveoptions-49f049f2.md

latest2.2 KB
Original Source

WorkbookSaveOptions.DefaultFormat Property

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

Namespace : DevExpress.XtraSpreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public DocumentFormat DefaultFormat { get; set; }
vb
Public Property DefaultFormat As DocumentFormat

Property Value

TypeDescription
DocumentFormat

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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

CurrentFormat

WorkbookSaveOptions Class

WorkbookSaveOptions Members

DevExpress.XtraSpreadsheet Namespace