# C1.C1Preview.RenderTextFragmentBase.GetAnchorRect

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderTextFragmentBase_GetAnchorRect_" data-uid="C1.C1Preview.RenderTextFragmentBase.GetAnchorRect*">GetAnchorRect Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderTextFragmentBase_GetAnchorRect_" data-uid="C1.C1Preview.RenderTextFragmentBase.GetAnchorRect*"></a>
<h4 id="C1_C1Preview_RenderTextFragmentBase_GetAnchorRect_C1_C1Preview_C1Anchor_C1_C1Preview_RectangleD__System_Boolean__" data-uid="C1.C1Preview.RenderTextFragmentBase.GetAnchorRect(C1.C1Preview.C1Anchor,C1.C1Preview.RectangleD@,System.Boolean@)">GetAnchorRect(C1Anchor, ref RectangleD, ref bool)</h4>
<div class="markdown level1 summary"><p>Gets a rectangle corresponding to a <a class="xref" href="C1.C1Preview.C1Anchor.html">C1Anchor</a> in the current fragment.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void GetAnchorRect(C1Anchor anchor, ref RectangleD anchorRect, ref bool anchorVisible)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub GetAnchorRect(anchor As C1Anchor, ByRef anchorRect As RectangleD, ByRef anchorVisible As Boolean)</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.C1Preview.C1Anchor.html">C1Anchor</a></td>
      <td><span class="parametername">anchor</span></td>
      <td><p>The anchor to test.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a></td>
      <td><span class="parametername">anchorRect</span></td>
      <td><p>OUT: A <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a> structure defining the area within the current fragment
associated with <code class="paramref">anchor</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">anchorVisible</span></td>
      <td><p>OUT: <b>true</b> if <code class="paramref">anchor</code> is visible in the current fragment, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.C1Preview.RenderFragment.GetAnchorRect.html#C1_C1Preview_RenderFragment_GetAnchorRect_C1_C1Preview_C1Anchor_C1_C1Preview_RectangleD__System_Boolean__">RenderFragment.GetAnchorRect(C1Anchor, ref RectangleD, ref bool)</a></div>
</div>
