[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ICustomXmlPartCollection.Add

Add Method

Add()

Adds a new Custom XML part.

The new part receives a generated ID. Set the XML payload by using Data before saving the workbook.

Declaration
ICustomXmlPart Add()
Function Add() As ICustomXmlPart
Returns
Type Description
ICustomXmlPart

The newly created Custom XML part.

Examples
ICustomXmlPart customXmlPart = workbook.CustomXmlParts.Add();
customXmlPart.Data = System.Text.Encoding.UTF8.GetBytes("<customer id=\"42\"/>");
string id = customXmlPart.Id;