RichEditControl.OpenXmlBytes Property

Gets or sets the control's content as an array of bytes in Office Open XML (Docx) format.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v20.1.dll

Declaration

[Bindable(true)]
[Browsable(false)]
public byte[] OpenXmlBytes { get; set; }
<Bindable(True)>
<Browsable(False)>
Public Property OpenXmlBytes As Byte()

Property Value

Type Description
Byte[]

An array of bytes representing the document in Docx format.

Remarks

Use the Document.OpenXmlBytes when operating at the document level, or the SubDocument.GetOpenXmlBytes to retrieve a document range in Docx format.

The code sample below shows how to export the RichEditControl content as a byte array:

byte[] text;

richEditControl.LoadDocument("Documents/FirstLook.docx");
text = richEditControl.OpenXmlBytes;

Implements

See Also