# C1.C1Preview.RenderObjectCollection.FindByAnchorName

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderObjectCollection_FindByAnchorName_" data-uid="C1.C1Preview.RenderObjectCollection.FindByAnchorName*">FindByAnchorName Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderObjectCollection_FindByAnchorName_" data-uid="C1.C1Preview.RenderObjectCollection.FindByAnchorName*"></a>
<h4 id="C1_C1Preview_RenderObjectCollection_FindByAnchorName_System_String_C1_C1Preview_C1Anchor__" data-uid="C1.C1Preview.RenderObjectCollection.FindByAnchorName(System.String,C1.C1Preview.C1Anchor@)">FindByAnchorName(string, out C1Anchor)</h4>
<div class="markdown level1 summary"><p>Searches the current collection for an object that contains an anchor
with the specified name in its <a class="xref" href="C1.C1Preview.RenderObject.Anchors.html#C1_C1Preview_RenderObject_Anchors">Anchors</a> collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderObject FindByAnchorName(string anchorName, out C1Anchor anchor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FindByAnchorName(anchorName As String, ByRef anchor As C1Anchor) As RenderObject</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">anchorName</span></td>
      <td><p>The name of the anchor to search for.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.C1Anchor.html">C1Anchor</a></td>
      <td><span class="parametername">anchor</span></td>
      <td><p>OUT: contains the <a class="xref" href="C1.C1Preview.C1Anchor.html">C1Anchor</a> object with the specified name.</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><a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a></td>
      <td><p>Returns the found render object or null if not found.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
