Back to Devexpress

DXRichEditDocumentSaveOptions.DefaultFormat Property

wpf-devexpress-dot-xpf-dot-richedit-dot-dxricheditdocumentsaveoptions-f493b2fd.md

latest2.3 KB
Original Source

DXRichEditDocumentSaveOptions.DefaultFormat Property

Gets or sets the default file format used for saving a newly created document. This is a dependency property.

Namespace : DevExpress.Xpf.RichEdit

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

NuGet Package : DevExpress.Wpf.RichEdit

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.

The default value is DocumentFormat.Rtf.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to DefaultFormat
RichEditControl

.DocumentSaveOptions .DefaultFormat

|

Remarks

The DefaultFormat property specifies a file name that will be used when saving a newly created document. The DXRichEditDocumentSaveOptions.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 document for more information.

See Also

DXRichEditDocumentSaveOptions Class

DXRichEditDocumentSaveOptions Members

DevExpress.Xpf.RichEdit Namespace