[]
Removes the Custom XML part with the specified ID.
If no part with the specified ID exists, the collection is not changed.
void Remove(string id)
Sub Remove(id As String)
| Type | Name | Description |
|---|---|---|
| string | id | The ID of the Custom XML part to remove. |
ICustomXmlPart customXmlPart = workbook.CustomXmlParts.Add();
string id = customXmlPart.Id;
workbook.CustomXmlParts.Remove(id);
Removes the Custom XML part at the specified zero-based index.
If the index is outside the valid range, the collection is not changed.
void Remove(int index)
Sub Remove(index As Integer)
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the Custom XML part to remove. |
if (workbook.CustomXmlParts.Count > 0)
{
workbook.CustomXmlParts.Remove(0);
}