All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

RichEditControl.SaveDocument(DocumentFormat) Method

Saves the document to a byte array in the specified file format.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v20.2.dll

Declaration

public byte[] SaveDocument(
    DocumentFormat documentFormat
)
Public Function SaveDocument(
    documentFormat As DocumentFormat
) As Byte()

Parameters

Name Type Description
documentFormat DocumentFormat

An enumeration member that specifies the output document format.

Returns

Type Description
Byte[]

A byte array that contains data in the specified format.

Remarks

You can handle the RichEditControl.BeforeExport event to specify export options.

NOTE

The SaveDocument method call does not change the RichEditControl.Modified property value.

See Also