Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

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

public CustomXmlPartCollection CustomXmlParts { get; }

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.

CustomXmlPart_Structure

You can use the CustomXmlPartCollection.Add method to store an XML string or a XmlDocument document as the document’s custom XML part.

Implements

See Also