# C1.WPF.VTreeHelper.GetChildrenOfType

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_VTreeHelper_GetChildrenOfType_" data-uid="C1.WPF.VTreeHelper.GetChildrenOfType*">GetChildrenOfType Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_VTreeHelper_GetChildrenOfType_" data-uid="C1.WPF.VTreeHelper.GetChildrenOfType*"></a>
<h4 id="C1_WPF_VTreeHelper_GetChildrenOfType_System_Windows_DependencyObject_System_Type_System_Collections_Generic_IList_System_Windows_DependencyObject___" data-uid="C1.WPF.VTreeHelper.GetChildrenOfType(System.Windows.DependencyObject,System.Type,System.Collections.Generic.IList{System.Windows.DependencyObject}@)">GetChildrenOfType(DependencyObject, Type, ref IList&lt;DependencyObject&gt;)</h4>
<div class="markdown level1 summary"><p>Returns all children visual objects of the specified type within a specified parent.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void GetChildrenOfType(DependencyObject reference, Type type, ref IList&lt;DependencyObject&gt; list)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub GetChildrenOfType(reference As DependencyObject, type As Type, ByRef list As IList(Of DependencyObject))</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.windows.dependencyobject">DependencyObject</a></td>
      <td><span class="parametername">reference</span></td>
      <td><p>The parent visual, referenced as a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a> of the children element to search for.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a>&gt;</td>
      <td><span class="parametername">list</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList&lt;T&gt;</a> object to fill with found objects.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
