# C1.C1Preview.IndexEntry

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_IndexEntry" data-uid="C1.C1Preview.IndexEntry" class="text-break">IndexEntry Class
</h1>
  <div class="markdown level0 summary"><p>Represents an entry in a word index of a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>.
Top-level entries of a <a class="xref" href="C1.C1Preview.RenderIndex.html">RenderIndex</a> (represented by instances of this class)
are contained in the <a class="xref" href="C1.C1Preview.RenderIndex.Entries.html#C1_C1Preview_RenderIndex_Entries">Entries</a> collection on the index object.
Nested entries are contained in the parent entry's <a class="xref" href="C1.C1Preview.IndexEntry.Children.html#C1_C1Preview_IndexEntry_Children">Children</a>
The current entry's occurrences in the document are represented by instances
of the <a class="xref" href="C1.C1Preview.IndexEntryOccurrence.html">IndexEntryOccurrence</a> class, and are contained in the
<a class="xref" href="C1.C1Preview.IndexEntry.Occurrences.html#C1_C1Preview_IndexEntry_Occurrences">Occurrences</a> collection of the entry.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">IndexEntry</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.C1Preview.IStyleOwner.html">IStyleOwner</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.PrintDocument.4.8.dll</h6>
  <h5 id="C1_C1Preview_IndexEntry_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[C1ClassSerialization(true)]
public class IndexEntry : IStyleOwner, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;C1ClassSerialization(True)&gt;
Public Class IndexEntry
    Implements IStyleOwner, ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_C1Preview_IndexEntry__ctor" data-uid="C1.C1Preview.IndexEntry.#ctor">
          <a class="xref" href="C1.C1Preview.IndexEntry.-ctor.html#C1_C1Preview_IndexEntry__ctor">IndexEntry()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.IndexEntry.html">IndexEntry</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry__ctor_System_String_" data-uid="C1.C1Preview.IndexEntry.#ctor(System.String)">
          <a class="xref" href="C1.C1Preview.IndexEntry.-ctor.html#C1_C1Preview_IndexEntry__ctor_System_String_">IndexEntry(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.IndexEntry.html">IndexEntry</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry__ctor_System_String_C1_C1Preview_C1LinkTarget___" data-uid="C1.C1Preview.IndexEntry.#ctor(System.String,C1.C1Preview.C1LinkTarget[])">
          <a class="xref" href="C1.C1Preview.IndexEntry.-ctor.html#C1_C1Preview_IndexEntry__ctor_System_String_C1_C1Preview_C1LinkTarget___">IndexEntry(string, params C1LinkTarget[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.IndexEntry.html">IndexEntry</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry__ctor_System_String_C1_C1Preview_IndexEntryOccurrence___" data-uid="C1.C1Preview.IndexEntry.#ctor(System.String,C1.C1Preview.IndexEntryOccurrence[])">
          <a class="xref" href="C1.C1Preview.IndexEntry.-ctor.html#C1_C1Preview_IndexEntry__ctor_System_String_C1_C1Preview_IndexEntryOccurrence___">IndexEntry(string, params IndexEntryOccurrence[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.IndexEntry.html">IndexEntry</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_C1Preview_IndexEntry_Caption" data-uid="C1.C1Preview.IndexEntry.Caption">
          <a class="xref" href="C1.C1Preview.IndexEntry.Caption.html#C1_C1Preview_IndexEntry_Caption">Caption</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the string that will represent the current index entry in the generated index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry_Children" data-uid="C1.C1Preview.IndexEntry.Children">
          <a class="xref" href="C1.C1Preview.IndexEntry.Children.html#C1_C1Preview_IndexEntry_Children">Children</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.IndexEntryCollection.html">IndexEntryCollection</a> containing the nested index entries,
i.e. sub-entries of the current index entry.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry_Document" data-uid="C1.C1Preview.IndexEntry.Document">
          <a class="xref" href="C1.C1Preview.IndexEntry.Document.html#C1_C1Preview_IndexEntry_Document">Document</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> object containing the current index entry.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry_HasChildren" data-uid="C1.C1Preview.IndexEntry.HasChildren">
          <a class="xref" href="C1.C1Preview.IndexEntry.HasChildren.html#C1_C1Preview_IndexEntry_HasChildren">HasChildren</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.C1Preview.IndexEntry.Children.html#C1_C1Preview_IndexEntry_Children">Children</a> collection
has been created and contains one or more elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry_HasOccurrences" data-uid="C1.C1Preview.IndexEntry.HasOccurrences">
          <a class="xref" href="C1.C1Preview.IndexEntry.HasOccurrences.html#C1_C1Preview_IndexEntry_HasOccurrences">HasOccurrences</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.C1Preview.IndexEntry.Occurrences.html#C1_C1Preview_IndexEntry_Occurrences">Occurrences</a> collection
has been created and contains one or more elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry_HasSeeAlso" data-uid="C1.C1Preview.IndexEntry.HasSeeAlso">
          <a class="xref" href="C1.C1Preview.IndexEntry.HasSeeAlso.html#C1_C1Preview_IndexEntry_HasSeeAlso">HasSeeAlso</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.C1Preview.IndexEntry.SeeAlso.html#C1_C1Preview_IndexEntry_SeeAlso">SeeAlso</a> collection
has been created and contains one or more elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry_Level" data-uid="C1.C1Preview.IndexEntry.Level">
          <a class="xref" href="C1.C1Preview.IndexEntry.Level.html#C1_C1Preview_IndexEntry_Level">Level</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry_Occurrences" data-uid="C1.C1Preview.IndexEntry.Occurrences">
          <a class="xref" href="C1.C1Preview.IndexEntry.Occurrences.html#C1_C1Preview_IndexEntry_Occurrences">Occurrences</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List&lt;T&gt;</a> of <a class="xref" href="C1.C1Preview.IndexEntryOccurrence.html">IndexEntryOccurrence</a> objects
representing occurrences of the current index entry in the document.
In the generated index, each occurrence is replaced by the page number,
which is a hyperlink to the occurrence's location in the document.
(Consecutive page numbers are collapsed to ranges.)</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry_RenderIndex" data-uid="C1.C1Preview.IndexEntry.RenderIndex">
          <a class="xref" href="C1.C1Preview.IndexEntry.RenderIndex.html#C1_C1Preview_IndexEntry_RenderIndex">RenderIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.IndexEntry.RenderIndex.html#C1_C1Preview_IndexEntry_RenderIndex">RenderIndex</a> object containing the current index entry
at some level, either at a top-level entry or a nested entry.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry_SeeAlso" data-uid="C1.C1Preview.IndexEntry.SeeAlso">
          <a class="xref" href="C1.C1Preview.IndexEntry.SeeAlso.html#C1_C1Preview_IndexEntry_SeeAlso">SeeAlso</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List&lt;T&gt;</a> of <a class="xref" href="C1.C1Preview.IndexEntry.html">IndexEntry</a> objects
related to the current index entry.
In the generated index, those entries will be listed as &quot;See also&quot;
cross-references from the current to other entries.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry_SeeAlsoStyle" data-uid="C1.C1Preview.IndexEntry.SeeAlsoStyle">
          <a class="xref" href="C1.C1Preview.IndexEntry.SeeAlsoStyle.html#C1_C1Preview_IndexEntry_SeeAlsoStyle">SeeAlsoStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.Style.html">Style</a> for the current index entry's
&quot;See also&quot; references (see <a class="xref" href="C1.C1Preview.IndexEntry.SeeAlso.html#C1_C1Preview_IndexEntry_SeeAlso">SeeAlso</a>).</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry_Style" data-uid="C1.C1Preview.IndexEntry.Style">
          <a class="xref" href="C1.C1Preview.IndexEntry.Style.html#C1_C1Preview_IndexEntry_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.Style.html">Style</a> for the current index entry.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_C1Preview_IndexEntry_AssignFrom_C1_C1Preview_IndexEntry_" data-uid="C1.C1Preview.IndexEntry.AssignFrom(C1.C1Preview.IndexEntry)">
          <a class="xref" href="C1.C1Preview.IndexEntry.AssignFrom.html#C1_C1Preview_IndexEntry_AssignFrom_C1_C1Preview_IndexEntry_">AssignFrom(IndexEntry)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.IndexEntry.html">IndexEntry</a> to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_IndexEntry_Clone" data-uid="C1.C1Preview.IndexEntry.Clone">
          <a class="xref" href="C1.C1Preview.IndexEntry.Clone.html#C1_C1Preview_IndexEntry_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a copy of the current <a class="xref" href="C1.C1Preview.IndexEntry.html">IndexEntry</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="C1.C1Preview.IndexEntry.RenderIndex.html#C1_C1Preview_IndexEntry_RenderIndex">RenderIndex</a></div>
      <div><a class="xref" href="C1.C1Preview.IndexEntryOccurrence.html">IndexEntryOccurrence</a></div>
      <div><a class="xref" href="C1.C1Preview.IndexEntryCollection.html">IndexEntryCollection</a></div>
      <div><a class="xref" href="C1.C1Preview.IndexEntryStyles.html">IndexEntryStyles</a></div>
      <div><a class="xref" href="C1.C1Preview.C1LinkTarget.html">C1LinkTarget</a></div>
  </div>

</div>
