# C1.WPF.Ribbon.C1Tool.GetOwner

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Ribbon_C1Tool_GetOwner_" data-uid="C1.WPF.Ribbon.C1Tool.GetOwner*">GetOwner Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Ribbon_C1Tool_GetOwner_" data-uid="C1.WPF.Ribbon.C1Tool.GetOwner*"></a>
<h4 id="C1_WPF_Ribbon_C1Tool_GetOwner" data-uid="C1.WPF.Ribbon.C1Tool.GetOwner">GetOwner()</h4>
<div class="markdown level1 summary"><p>Returns the owner of this <a class="xref" href="C1.WPF.Ribbon.C1Tool.html">C1Tool</a> element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected UIElement GetOwner()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function GetOwner() As UIElement</code></pre>
</div>
<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.uielement">UIElement</a></td>
      <td><p>Returns <a class="xref" href="C1.WPF.Ribbon.C1Ribbon.html">C1Ribbon</a> or <a class="xref" href="C1.WPF.Ribbon.C1ToolStrip.html">C1ToolStrip</a> element to which this tool belongs.
Otherwise, returns null.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
