Skip to main content
A newer version of this page is available. .
All docs
V20.2

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.Xpf.RichEdit

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.RichEdit, DevExpress.Wpf.RichEdit

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 use this SaveDocument method overload to store a document in an external database.

See Also