[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ICustomXmlPartCollection.Remove

Remove Method

Remove(string)

Removes the Custom XML part with the specified ID.

If no part with the specified ID exists, the collection is not changed.

Declaration
void Remove(string id)
Sub Remove(id As String)
Parameters
Type Name Description
string id

The ID of the Custom XML part to remove.

Examples
ICustomXmlPart customXmlPart = workbook.CustomXmlParts.Add();
string id = customXmlPart.Id;

workbook.CustomXmlParts.Remove(id);

Remove(int)

Removes the Custom XML part at the specified zero-based index.

If the index is outside the valid range, the collection is not changed.

Declaration
void Remove(int index)
Sub Remove(index As Integer)
Parameters
Type Name Description
int index

The zero-based index of the Custom XML part to remove.

Examples
if (workbook.CustomXmlParts.Count > 0)
{
    workbook.CustomXmlParts.Remove(0);
}