Back to Devexpress

DocumentSaveOptions.DefaultFormat Property

officefileapi-devexpress-dot-xtrarichedit-dot-documentsaveoptions-45ff061d.md

latest2.7 KB
Original Source

DocumentSaveOptions.DefaultFormat Property

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

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.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.Rtf unless specified explicitly.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to DefaultFormat
RichEditControlOptionsBase

.DocumentSaveOptions .DefaultFormat

|

Remarks

The DocumentSaveOptions.DefaultFileName property specifies a file name that will be used when saving a newly created document. The DocumentSaveOptions.DefaultFormat property specifies a format for saving a newly created document. File extension for the specified file format is added automatically.

To specify a format that is suggested in the SaveAs file dialog invoked via the SaveDocumentAsCommand command, use a custom SaveAs command. See the How to: Save a Document in the RichEdit Control document for more information.

See Also

DefaultFileName

How to: Save a Document in the RichEditControl

DocumentSaveOptions Class

DocumentSaveOptions Members

DevExpress.XtraRichEdit Namespace