Skip to main content

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.v24.1.dll

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


public byte[] OpenXmlBytes { get; set; }

Property Value

Type Description

An array of bytes representing the document in Docx format.


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;

text = richEditControl.OpenXmlBytes;
See Also