# C1.WPF.RichTextBox.C1RichTextBox.GetRectFromPosition

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_C1RichTextBox_GetRectFromPosition_" data-uid="C1.WPF.RichTextBox.C1RichTextBox.GetRectFromPosition*">GetRectFromPosition Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_C1RichTextBox_GetRectFromPosition_" data-uid="C1.WPF.RichTextBox.C1RichTextBox.GetRectFromPosition*"></a>
<h4 id="C1_WPF_RichTextBox_C1RichTextBox_GetRectFromPosition_C1_WPF_RichTextBox_Documents_C1TextPointer_" data-uid="C1.WPF.RichTextBox.C1RichTextBox.GetRectFromPosition(C1.WPF.RichTextBox.Documents.C1TextPointer)">GetRectFromPosition(C1TextPointer)</h4>
<div class="markdown level1 summary"><p>Returns the <span class="xref">System.Windows.Rect</span> of screen coordinates for a given position.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Rect GetRectFromPosition(C1TextPointer position)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetRectFromPosition(position As C1TextPointer) As Rect</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><a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</a></td>
      <td><span class="parametername">position</span></td>
      <td><p>A <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</a>.</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">Rect</span></td>
      <td><p>The <span class="xref">System.Windows.Rect</span> of screen coordinates for a given position.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
