# C1.C1Preview.IndexEntry.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_IndexEntry__ctor_" data-uid="C1.C1Preview.IndexEntry.#ctor*">IndexEntry Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_IndexEntry__ctor_" data-uid="C1.C1Preview.IndexEntry.#ctor*"></a>
<h4 id="C1_C1Preview_IndexEntry__ctor" data-uid="C1.C1Preview.IndexEntry.#ctor">IndexEntry()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.IndexEntry.html">IndexEntry</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IndexEntry()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_C1Preview_IndexEntry__ctor_" data-uid="C1.C1Preview.IndexEntry.#ctor*"></a>
<h4 id="C1_C1Preview_IndexEntry__ctor_System_String_" data-uid="C1.C1Preview.IndexEntry.#ctor(System.String)">IndexEntry(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.IndexEntry.html">IndexEntry</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IndexEntry(string caption)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(caption As String)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</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><span class="parametername">caption</span></td>
      <td><p>The string that is assigned to the <a class="xref" href="C1.C1Preview.IndexEntry.Caption.html#C1_C1Preview_IndexEntry_Caption">Caption</a> property of the current index entry.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_IndexEntry__ctor_" data-uid="C1.C1Preview.IndexEntry.#ctor*"></a>
<h4 id="C1_C1Preview_IndexEntry__ctor_System_String_C1_C1Preview_IndexEntryOccurrence___" data-uid="C1.C1Preview.IndexEntry.#ctor(System.String,C1.C1Preview.IndexEntryOccurrence[])">IndexEntry(string, params IndexEntryOccurrence[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.IndexEntry.html">IndexEntry</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IndexEntry(string caption, params IndexEntryOccurrence[] occurrences)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(caption As String, ParamArray occurrences As IndexEntryOccurrence())</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</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><span class="parametername">caption</span></td>
      <td><p>The string that is assigned to the <a class="xref" href="C1.C1Preview.IndexEntry.Caption.html#C1_C1Preview_IndexEntry_Caption">Caption</a> property of the current index entry.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.IndexEntryOccurrence.html">IndexEntryOccurrence</a>[]</td>
      <td><span class="parametername">occurrences</span></td>
      <td><p>One or more <a class="xref" href="C1.C1Preview.IndexEntryOccurrence.html">IndexEntryOccurrence</a> objects that are added to the <a class="xref" href="C1.C1Preview.IndexEntry.Occurrences.html#C1_C1Preview_IndexEntry_Occurrences">Occurrences</a> collection of this index entry.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_IndexEntry__ctor_" data-uid="C1.C1Preview.IndexEntry.#ctor*"></a>
<h4 id="C1_C1Preview_IndexEntry__ctor_System_String_C1_C1Preview_C1LinkTarget___" data-uid="C1.C1Preview.IndexEntry.#ctor(System.String,C1.C1Preview.C1LinkTarget[])">IndexEntry(string, params C1LinkTarget[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.IndexEntry.html">IndexEntry</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IndexEntry(string caption, params C1LinkTarget[] targets)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(caption As String, ParamArray targets As C1LinkTarget())</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</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><span class="parametername">caption</span></td>
      <td><p>The string that is assigned to the <a class="xref" href="C1.C1Preview.IndexEntry.Caption.html#C1_C1Preview_IndexEntry_Caption">Caption</a> property of the current index entry.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.C1LinkTarget.html">C1LinkTarget</a>[]</td>
      <td><span class="parametername">targets</span></td>
      <td><p>A list of <a class="xref" href="C1.C1Preview.C1LinkTarget.html">C1LinkTarget</a> objects; for each target in that list,
a <a class="xref" href="C1.C1Preview.IndexEntryOccurrence.html">IndexEntryOccurrence</a> is created and added to the <a class="xref" href="C1.C1Preview.IndexEntry.Occurrences.html#C1_C1Preview_IndexEntry_Occurrences">Occurrences</a> of the current index item.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
