# C1.C1Preview.RenderFragment.GetAnchorRect

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderFragment_GetAnchorRect_" data-uid="C1.C1Preview.RenderFragment.GetAnchorRect*">GetAnchorRect Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderFragment_GetAnchorRect_" data-uid="C1.C1Preview.RenderFragment.GetAnchorRect*"></a>
<h4 id="C1_C1Preview_RenderFragment_GetAnchorRect_C1_C1Preview_C1Anchor_C1_C1Preview_RectangleD__System_Boolean__" data-uid="C1.C1Preview.RenderFragment.GetAnchorRect(C1.C1Preview.C1Anchor,C1.C1Preview.RectangleD@,System.Boolean@)">GetAnchorRect(C1Anchor, ref RectangleD, ref bool)</h4>
<div class="markdown level1 summary"><p>Calculates the location of a <a class="xref" href="C1.C1Preview.C1Anchor.html">C1Anchor</a>
contained in the <a class="xref" href="C1.C1Preview.RenderObject.Anchors.html#C1_C1Preview_RenderObject_Anchors">Anchors</a> collection of the
render object that produced 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 virtual void GetAnchorRect(C1Anchor anchor, ref RectangleD anchorRect, ref bool anchorVisible)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable 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 <a class="xref" href="C1.C1Preview.C1Anchor.html">C1Anchor</a> object to get the location of.</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: The bounds of <code class="paramref">anchor</code> in the fragment in <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units.
(Note that this parameter is assigned a valid value only if <code class="paramref">anchorVisible</code> is <b>true</b> on method return.</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> appears in the current fragment, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
