Workbook.CustomXmlParts Property
Provides access to the collection of custom XML parts in the document.
You require a license to the DevExpress Office File API or DevExpress Universal Subscription to use this property in production code.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Docs.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
CustomXmlPartCollection | A CustomXmlPartCollection object that is the collection of embedded arbitrary XML data (custom XML parts). |
Remarks
A document in OpenXml (.xlsx) format consists of XML files within folders packed in a ZIP archive. Most of the XML files are built-in parts that define the document structure and hold its content. However, documents can also contain custom XML parts, which you can use to store arbitrary XML data.
The folder that contains custom XML parts is located in the document structure as shown in the following picture. There are two custom XML parts clearly identified as item1 and item2.
You can use the CustomXmlPartCollection.Add method to store an XML string or a XmlDocument document as the document’s custom XML part.