Back to Devexpress

RichEditControl.SaveDocument(DocumentFormat, EncryptionSettings) Method

windowsforms-devexpress-dot-xtrarichedit-dot-richeditcontrol-dot-savedocument-x28-devexpress-dot-xtrarichedit-dot-documentformat-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-encryptionsettings-x29.md

latest2.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.RichEdit

Declaration

csharp
public byte[] SaveDocument(
    DocumentFormat documentFormat,
    EncryptionSettings encryptionSettings
)
vb
Public Function SaveDocument(
    documentFormat As DocumentFormat,
    encryptionSettings As EncryptionSettings
) As Byte()

Parameters

NameTypeDescription
documentFormatDocumentFormat

An enumeration member that specifies the output document format.

| | encryptionSettings | EncryptionSettings |

Specifies encryption settings.

|

Returns

TypeDescription
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

RichEditControl Class

RichEditControl Members

DevExpress.XtraRichEdit Namespace