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

Declaration

[Bindable(true)]
[Browsable(false)]
public byte[] OpenXmlBytes { get; set; }

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;
See Also