Back to Devexpress

RichEditControl.DocxBytes Property

windowsforms-devexpress-dot-xtrarichedit-dot-richeditcontrol-9426231f.md

latest1.9 KB
Original Source

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

NuGet Package : DevExpress.Win.RichEdit

Declaration

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

Property Value

TypeDescription
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:

csharp
byte[] text;

richEditControl.LoadDocument("Documents/FirstLook.docx");
text = richEditControl.DocxBytes;
vb
Dim text As Byte()

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

See Also

RichEditControl Class

RichEditControl Members

DevExpress.XtraRichEdit Namespace