# C1.C1Preview.RenderFragmentCollection.FindByObject

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderFragmentCollection_FindByObject_" data-uid="C1.C1Preview.RenderFragmentCollection.FindByObject*">FindByObject Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderFragmentCollection_FindByObject_" data-uid="C1.C1Preview.RenderFragmentCollection.FindByObject*"></a>
<h4 id="C1_C1Preview_RenderFragmentCollection_FindByObject_C1_C1Preview_RenderObject_System_Boolean_" data-uid="C1.C1Preview.RenderFragmentCollection.FindByObject(C1.C1Preview.RenderObject,System.Boolean)">FindByObject(RenderObject, bool)</h4>
<div class="markdown level1 summary"><p>Searches for a <a class="xref" href="C1.C1Preview.RenderFragment.html">RenderFragment</a> in the current collection
that was produced by a specific <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderFragment FindByObject(RenderObject ro, bool findInChildren)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FindByObject(ro As RenderObject, findInChildren As Boolean) As RenderFragment</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.RenderObject.html">RenderObject</a></td>
      <td><span class="parametername">ro</span></td>
      <td><p>The render object to search for.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">findInChildren</span></td>
      <td><p>If true then fragment also will be searched in the <a class="xref" href="C1.C1Preview.RenderFragment.Children.html#C1_C1Preview_RenderFragment_Children">Children</a> collections of the objects contained in this collection.</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.RenderFragment.html">RenderFragment</a></td>
      <td><p>The fragment that was produced by <code class="paramref">ro</code>, or <b>null</b> if it was not found.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderFragmentCollection_FindByObject_" data-uid="C1.C1Preview.RenderFragmentCollection.FindByObject*"></a>
<h4 id="C1_C1Preview_RenderFragmentCollection_FindByObject_C1_C1Preview_RenderObject_" data-uid="C1.C1Preview.RenderFragmentCollection.FindByObject(C1.C1Preview.RenderObject)">FindByObject(RenderObject)</h4>
<div class="markdown level1 summary"><p>Searches for a <a class="xref" href="C1.C1Preview.RenderFragment.html">RenderFragment</a> in the current collection
that was produced by a specific <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderFragment FindByObject(RenderObject ro)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FindByObject(ro As RenderObject) As RenderFragment</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.RenderObject.html">RenderObject</a></td>
      <td><span class="parametername">ro</span></td>
      <td><p>The render object to search for.</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.RenderFragment.html">RenderFragment</a></td>
      <td><p>The fragment that was produced by <code class="paramref">ro</code>, or <b>null</b> if it was not found.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
