# C1.Document.C1PdfDocumentSource.GetWholeDocumentRange

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Document_C1PdfDocumentSource_GetWholeDocumentRange_" data-uid="C1.Document.C1PdfDocumentSource.GetWholeDocumentRange*">GetWholeDocumentRange Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Document_C1PdfDocumentSource_GetWholeDocumentRange_" data-uid="C1.Document.C1PdfDocumentSource.GetWholeDocumentRange*"></a>
<h4 id="C1_Document_C1PdfDocumentSource_GetWholeDocumentRange_C1_Document_Util_IC1TextMeasurementContext_" data-uid="C1.Document.C1PdfDocumentSource.GetWholeDocumentRange(C1.Document.Util.IC1TextMeasurementContext)">GetWholeDocumentRange(IC1TextMeasurementContext)</h4>
<div class="markdown level1 summary"><p>Creates a <span class="xref">C1.Document.C1DocumentRange</span> object that includes the whole document.
This method can return null if the document contains no text.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override C1DocumentRange GetWholeDocumentRange(IC1TextMeasurementContext textMeasurementContext)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function GetWholeDocumentRange(textMeasurementContext As IC1TextMeasurementContext) As C1DocumentRange</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><span class="xref">IC1TextMeasurementContext</span></td>
      <td><span class="parametername">textMeasurementContext</span></td>
      <td><p>The <span class="xref">C1.Document.Util.IC1TextMeasurementContext</span> to use while building <span class="xref">C1.Document.C1DocumentRange</span>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">C1DocumentRange</span></td>
      <td><p>A <span class="xref">C1.Document.C1DocumentRange</span> that defines the whole document.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Document.C1DocumentSource.GetWholeDocumentRange.html#C1_Document_C1DocumentSource_GetWholeDocumentRange_C1_Document_Util_IC1TextMeasurementContext_">C1DocumentSource.GetWholeDocumentRange(IC1TextMeasurementContext)</a></div>
</div>
