[]
Gets the unique ID of the Custom XML part.
The ID is generated when the part is added to the workbook and is stored in the Custom XML part properties. Use this value with this[string] to retrieve the same part after the workbook is saved and reopened.
string Id { get; }
ReadOnly Property Id As String
| Type | Description |
|---|---|
| string | The unique ID of the Custom XML part. |
ICustomXmlPart customXmlPart = workbook.CustomXmlParts.Add();
string id = customXmlPart.Id;
ICustomXmlPart samePart = workbook.CustomXmlParts[id];