RichEditControl.DocxBytes 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.v25.1.dll
NuGet Package: DevExpress.Win.RichEdit
Declaration
Property Value
Type | Description |
---|---|
Byte[] | An array of bytes representing the document in DOCX format. |
Remarks
Use the Document.DocxBytes when operating at the document level, or the SubDocument.GetDocxBytes to retrieve a document range in Docx format.
The following code snippet exports the RichEditControl content as a byte array:
byte[] text;
richEditControl.LoadDocument("Documents/FirstLook.docx");
text = richEditControl.DocxBytes;
See Also