# C1.Document.C1DocumentSource.GetWordDocumentRange

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Document_C1DocumentSource_GetWordDocumentRange_" data-uid="C1.Document.C1DocumentSource.GetWordDocumentRange*">GetWordDocumentRange Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Document_C1DocumentSource_GetWordDocumentRange_" data-uid="C1.Document.C1DocumentSource.GetWordDocumentRange*"></a>
<h4 id="C1_Document_C1DocumentSource_GetWordDocumentRange_C1_Document_C1DocumentTextPosition_C1_Document_Util_IC1TextMeasurementContext_" data-uid="C1.Document.C1DocumentSource.GetWordDocumentRange(C1.Document.C1DocumentTextPosition,C1.Document.Util.IC1TextMeasurementContext)">GetWordDocumentRange(C1DocumentTextPosition, IC1TextMeasurementContext)</h4>
<div class="markdown level1 summary"><p>Creates a <span class="xref">C1.Document.C1DocumentRange</span> object that defines a word containing a specified position in the document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1DocumentRange GetWordDocumentRange(C1DocumentTextPosition position, IC1TextMeasurementContext textMeasurementContext)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetWordDocumentRange(position As C1DocumentTextPosition, 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">C1DocumentTextPosition</span></td>
      <td><span class="parametername">position</span></td>
      <td><p>A <span class="xref">C1.Document.C1DocumentTextPosition</span> object specifying the text position.</p>
</td>
    </tr>
    <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 word that contains or is near the specified <code class="paramref">position</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
