# C1.C1Preview.RenderToc

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_RenderToc" data-uid="C1.C1Preview.RenderToc" class="text-break">RenderToc Class
</h1>
  <div class="markdown level0 summary"><p>Represents a table of contents (TOC) in a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>.
Individual TOC entries are represented by <a class="xref" href="C1.C1Preview.RenderTocItem.html">RenderTocItem</a> objects.
This object may also contain other types of render objects
(this may be used e.g. to show a TOC header).</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"><a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a></div>
    <div class="level2"><a class="xref" href="C1.C1Preview.RenderArea.html">RenderArea</a></div>
    <div class="level3"><span class="xref">RenderToc</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="C1.C1Preview.IDocumentLocation.html">IDocumentLocation</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_RenderToc_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RenderToc : RenderArea, IStyleOwner, IDocumentLocation</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RenderToc
    Inherits RenderArea
    Implements IStyleOwner, IDocumentLocation</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_RenderToc__ctor" data-uid="C1.C1Preview.RenderToc.#ctor">
          <a class="xref" href="C1.C1Preview.RenderToc.-ctor.html#C1_C1Preview_RenderToc__ctor">RenderToc()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderToc.html">RenderToc</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_RenderToc_FillChar" data-uid="C1.C1Preview.RenderToc.FillChar">
          <a class="xref" href="C1.C1Preview.RenderToc.FillChar.html#C1_C1Preview_RenderToc_FillChar">FillChar</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a character used to fill empty spaces between TOC items and corresponding page numbers.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_LevelSpacing" data-uid="C1.C1Preview.RenderToc.LevelSpacing">
          <a class="xref" href="C1.C1Preview.RenderToc.LevelSpacing.html#C1_C1Preview_RenderToc_LevelSpacing">LevelSpacing</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the indentation step of TOC items.
Items with <a class="xref" href="C1.C1Preview.RenderTocItem.Level.html#C1_C1Preview_RenderTocItem_Level">Level</a> equal to 1 are not indented,
each next level is indented by this value.
The default value is <b>10mm</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_LinksOnPageNumbersOnly" data-uid="C1.C1Preview.RenderToc.LinksOnPageNumbersOnly">
          <a class="xref" href="C1.C1Preview.RenderToc.LinksOnPageNumbersOnly.html#C1_C1Preview_RenderToc_LinksOnPageNumbersOnly">LinksOnPageNumbersOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether only the page numbers in the
rendered TOC represent clickable hyperlinks (otherwise, the entire
area between an entry's caption and page number can be clicked).
The default value is false.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_PageNumbersAtRight" data-uid="C1.C1Preview.RenderToc.PageNumbersAtRight">
          <a class="xref" href="C1.C1Preview.RenderToc.PageNumbersAtRight.html#C1_C1Preview_RenderToc_PageNumbersAtRight">PageNumbersAtRight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether page numbers should be right-aligned within the current TOC.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_ShowPageNumbers" data-uid="C1.C1Preview.RenderToc.ShowPageNumbers">
          <a class="xref" href="C1.C1Preview.RenderToc.ShowPageNumbers.html#C1_C1Preview_RenderToc_ShowPageNumbers">ShowPageNumbers</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether page numbers should be displayed in the current TOC.</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_RenderToc_AddItem_System_String_C1_C1Preview_C1Hyperlink_" data-uid="C1.C1Preview.RenderToc.AddItem(System.String,C1.C1Preview.C1Hyperlink)">
          <a class="xref" href="C1.C1Preview.RenderToc.AddItem.html#C1_C1Preview_RenderToc_AddItem_System_String_C1_C1Preview_C1Hyperlink_">AddItem(string, C1Hyperlink)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.RenderTocItem.html">RenderTocItem</a> initialized with the specified
text and hyperlink, and adds it to the current TOC.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_AddItem_System_String_C1_C1Preview_C1Hyperlink_System_Int32_" data-uid="C1.C1Preview.RenderToc.AddItem(System.String,C1.C1Preview.C1Hyperlink,System.Int32)">
          <a class="xref" href="C1.C1Preview.RenderToc.AddItem.html#C1_C1Preview_RenderToc_AddItem_System_String_C1_C1Preview_C1Hyperlink_System_Int32_">AddItem(string, C1Hyperlink, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.RenderTocItem.html">RenderTocItem</a> initialized with the specified
text, hyperlink and level, and adds it to the current TOC.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_AddItem_System_String_C1_C1Preview_ParagraphObject_" data-uid="C1.C1Preview.RenderToc.AddItem(System.String,C1.C1Preview.ParagraphObject)">
          <a class="xref" href="C1.C1Preview.RenderToc.AddItem.html#C1_C1Preview_RenderToc_AddItem_System_String_C1_C1Preview_ParagraphObject_">AddItem(string, ParagraphObject)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.RenderTocItem.html">RenderTocItem</a> initialized with the specified
text and target <a class="xref" href="C1.C1Preview.ParagraphObject.html">ParagraphObject</a>, and adds it to the current TOC.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_AddItem_System_String_C1_C1Preview_ParagraphObject_System_Int32_" data-uid="C1.C1Preview.RenderToc.AddItem(System.String,C1.C1Preview.ParagraphObject,System.Int32)">
          <a class="xref" href="C1.C1Preview.RenderToc.AddItem.html#C1_C1Preview_RenderToc_AddItem_System_String_C1_C1Preview_ParagraphObject_System_Int32_">AddItem(string, ParagraphObject, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.RenderTocItem.html">RenderTocItem</a> initialized with the specified
text, target <a class="xref" href="C1.C1Preview.ParagraphObject.html">ParagraphObject</a> and level, and adds it to the current TOC.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_AddItem_System_String_C1_C1Preview_RenderObject_" data-uid="C1.C1Preview.RenderToc.AddItem(System.String,C1.C1Preview.RenderObject)">
          <a class="xref" href="C1.C1Preview.RenderToc.AddItem.html#C1_C1Preview_RenderToc_AddItem_System_String_C1_C1Preview_RenderObject_">AddItem(string, RenderObject)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.RenderTocItem.html">RenderTocItem</a> initialized with the specified
text and target <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>, and adds it to the current TOC.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_AddItem_System_String_C1_C1Preview_RenderObject_System_Int32_" data-uid="C1.C1Preview.RenderToc.AddItem(System.String,C1.C1Preview.RenderObject,System.Int32)">
          <a class="xref" href="C1.C1Preview.RenderToc.AddItem.html#C1_C1Preview_RenderToc_AddItem_System_String_C1_C1Preview_RenderObject_System_Int32_">AddItem(string, RenderObject, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.RenderTocItem.html">RenderTocItem</a> initialized with the specified
text, target <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> and level, and adds it to the current TOC.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_AddItem_System_String_System_Int32_" data-uid="C1.C1Preview.RenderToc.AddItem(System.String,System.Int32)">
          <a class="xref" href="C1.C1Preview.RenderToc.AddItem.html#C1_C1Preview_RenderToc_AddItem_System_String_System_Int32_">AddItem(string, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.RenderTocItem.html">RenderTocItem</a> initialized with the specified
text and target page number, and adds it to the current TOC.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_AddItem_System_String_System_Int32_System_Int32_" data-uid="C1.C1Preview.RenderToc.AddItem(System.String,System.Int32,System.Int32)">
          <a class="xref" href="C1.C1Preview.RenderToc.AddItem.html#C1_C1Preview_RenderToc_AddItem_System_String_System_Int32_System_Int32_">AddItem(string, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.RenderTocItem.html">RenderTocItem</a> initialized with the specified
text, target page number and level, and adds it to the current TOC.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.RenderToc.AssignFrom(C1.C1Preview.RenderObject,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.C1Preview.RenderToc.AssignFrom.html#C1_C1Preview_RenderToc_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_">AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> to the current object.
Calls the base <a class="xref" href="C1.C1Preview.RenderObject.AssignFrom.html#C1_C1Preview_RenderObject_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_">AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool)</a> method.
If <code class="paramref">source</code> is a <a class="xref" href="C1.C1Preview.RenderToc.html">RenderToc</a>, also copies <a class="xref" href="C1.C1Preview.RenderToc.html">RenderToc</a>-specific properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_CreateSame" data-uid="C1.C1Preview.RenderToc.CreateSame">
          <a class="xref" href="C1.C1Preview.RenderToc.CreateSame.html#C1_C1Preview_RenderToc_CreateSame">CreateSame()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates new empty <a class="xref" href="C1.C1Preview.RenderArea.html">RenderArea</a> object
linked with same <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> as current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderToc_ShouldSerializeLevelSpacing" data-uid="C1.C1Preview.RenderToc.ShouldSerializeLevelSpacing">
          <a class="xref" href="C1.C1Preview.RenderToc.ShouldSerializeLevelSpacing.html#C1_C1Preview_RenderToc_ShouldSerializeLevelSpacing">ShouldSerializeLevelSpacing()</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the <a class="xref" href="C1.C1Preview.RenderToc.LevelSpacing.html#C1_C1Preview_RenderToc_LevelSpacing">LevelSpacing</a> property should be serialized.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
