Skip to main content
All docs
V24.1

RichEditControl.SaveDocument(DocumentFormat, EncryptionSettings) Method

Saves the document to a byte array in the specified file format and encrypts it with a password.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v24.1.dll

NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.RichEdit, DevExpress.Win.TreeMap

Declaration

public byte[] SaveDocument(
    DocumentFormat documentFormat,
    EncryptionSettings encryptionSettings
)

Parameters

Name Type Description
documentFormat DocumentFormat

An enumeration member that specifies the output document format.

encryptionSettings EncryptionSettings

Specifies encryption settings.

Returns

Type Description
Byte[]

A byte array that contains encrypted 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