# GrapeCity.Documents.Excel.ICustomXmlPart.Id

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_ICustomXmlPart_Id_" data-uid="GrapeCity.Documents.Excel.ICustomXmlPart.Id*">Id Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_ICustomXmlPart_Id_" data-uid="GrapeCity.Documents.Excel.ICustomXmlPart.Id*"></a>
<h4 id="GrapeCity_Documents_Excel_ICustomXmlPart_Id" data-uid="GrapeCity.Documents.Excel.ICustomXmlPart.Id">Id</h4>
<div class="markdown level1 summary"><p>Gets the unique ID of the Custom XML part.</p>
<p>
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 <a class="xref" href="GrapeCity.Documents.Excel.ICustomXmlPartCollection.Item.html#GrapeCity_Documents_Excel_ICustomXmlPartCollection_Item_System_String_">this[string]</a> to retrieve the same part after
the workbook is saved and reopened.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">string Id { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">ReadOnly Property Id As String</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><p>The unique ID of the Custom XML part.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Documents_Excel_ICustomXmlPart_Id_examples">Examples</h5>
<pre><code class="lang-csharp">ICustomXmlPart customXmlPart = workbook.CustomXmlParts.Add();
string id = customXmlPart.Id;

ICustomXmlPart samePart = workbook.CustomXmlParts[id];</code></pre>

</div>
