Skip to main content
.NET Framework 4.5.2+

DocumentFormat Struct

A document format.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v23.1.Core.dll

NuGet Package: DevExpress.RichEdit.Core

Declaration

[TypeConverter(typeof(DocumentFormatTypeConverter))]
[ComVisible(true)]
public struct DocumentFormat :
    IConvertToInt<DocumentFormat>,
    IEquatable<DocumentFormat>

Remarks

The DocumentFormat structure contains the fields to specify the file format of the document.

The following methods use the DocumentFormat enumeration:

Action Method
Save Document.SaveDocument
RichEditControl.SaveDocument
RichEditControl.SaveDocument
RichEditDocumentServer.SaveDocument
ASPxRichEdit.SaveCopy
RichEditExtension.SaveCopy
RichEditDocumentInfo.SaveCopy
Load Document.LoadDocument
RichEditControl.LoadDocument
RichEditDocumentServer.LoadDocument
ASPxRichEdit.Open
RichEditExtension.Open
Mail Merge Document.MailMerge
RichEditDocumentServer.MailMerge
RichEditControl.MailMerge
RichEditControl.MailMerge
ASPxRichEdit.MailMerge
RichEditExtension.MailMerge
Add Document Content SubDocument.InsertDocumentContent
SubDocument.AppendDocumentContent
Document.Paste
Specify Property Values DocumentSaveOptions.DefaultFormat
DocumentSaveOptions.CurrentFormat
BeforeExportEventArgs.DocumentFormat
BeforeImportEventArgs.DocumentFormat
RichEditDocumentInfo.DocumentFormat

Note

We do not recommend that you use the DocumentFormat.Undefined field as the SaveDocument or SaveCopy method parameter. Otherwise, the document is saved with invalid format.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DocumentFormat struct.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also