# C1.C1Preview.IndexEntry.Level

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_IndexEntry_Level_" data-uid="C1.C1Preview.IndexEntry.Level*">Level Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_IndexEntry_Level_" data-uid="C1.C1Preview.IndexEntry.Level*"></a>
<h4 id="C1_C1Preview_IndexEntry_Level" data-uid="C1.C1Preview.IndexEntry.Level">Level</h4>
<div class="markdown level1 summary"><p>Gets the level of the current index entry.
The top-level entries' level is <b>0</b>, sub-entries' level is <b>1</b>, and so on.
If the current index entry has not been added to a <a class="xref" href="C1.C1Preview.IndexEntry.RenderIndex.html#C1_C1Preview_IndexEntry_RenderIndex">RenderIndex</a> object
or to a nested entry of such object, this property returns <b>-1</b>.
or to an <a class="xref" href="C1.C1Preview.IndexEntry.html">IndexEntry</a></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Level { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property Level As Integer</code></pre>
</div>
<h5 id="C1_C1Preview_IndexEntry_Level_seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.IndexEntry.RenderIndex.html#C1_C1Preview_IndexEntry_RenderIndex">RenderIndex</a></div>
</div>
</div>
