# GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.GetVisualChild

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_GetVisualChild_" data-uid="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.GetVisualChild*">GetVisualChild Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_GetVisualChild_" data-uid="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.GetVisualChild*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_GetVisualChild_System_Int32_" data-uid="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.GetVisualChild(System.Int32)">GetVisualChild(int)</h4>
<div class="markdown level1 summary"><p>Overrides <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual.getvisualchild">GetVisualChild(int)</a>, and returns a child at the specified index from a collection of child elements.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override Visual GetVisualChild(int index)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Function GetVisualChild(index As Integer) As Visual</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.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>The zero-based index of the requested child element in the 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="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></td>
      <td><p>The requested child element. This should not return null; if the provided index is out of range, an exception is thrown.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement.getvisualchild">FrameworkElement.GetVisualChild(int)</a></div>
</div>
