# C1.C1Preview.RenderIndex.PageRangeFormat

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderIndex_PageRangeFormat_" data-uid="C1.C1Preview.RenderIndex.PageRangeFormat*">PageRangeFormat Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderIndex_PageRangeFormat_" data-uid="C1.C1Preview.RenderIndex.PageRangeFormat*"></a>
<h4 id="C1_C1Preview_RenderIndex_PageRangeFormat" data-uid="C1.C1Preview.RenderIndex.PageRangeFormat">PageRangeFormat</h4>
<div class="markdown level1 summary"><p>Gets or sets a format string used to format the page ranges of occurrences
of index entries in the generated index.</p>
<p>The default is <b>"{0}-{1}"</b>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string PageRangeFormat { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property PageRangeFormat As String</code></pre>
</div>
<h5 id="C1_C1Preview_RenderIndex_PageRangeFormat_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When an index entry occurs on consecutive pages in a document (e.g. on pages 3, 4 and 5),
those occurrences are collapsed into a range (&quot;3-5&quot; in that case).
<b>PageRangeFormat</b> is used to format those ranges.</p>
</div>
</div>
