[]
Adds a new Custom XML part.
The new part receives a generated ID. Set the XML payload by using Data before saving the workbook.
ICustomXmlPart Add()
Function Add() As ICustomXmlPart
| Type | Description |
|---|---|
| ICustomXmlPart | The newly created Custom XML part. |
ICustomXmlPart customXmlPart = workbook.CustomXmlParts.Add();
customXmlPart.Data = System.Text.Encoding.UTF8.GetBytes("<customer id=\"42\"/>");
string id = customXmlPart.Id;