# C1.Win.Command.C1CommandHolder.GetC1Command

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Command_C1CommandHolder_GetC1Command_" data-uid="C1.Win.Command.C1CommandHolder.GetC1Command*">GetC1Command Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Command_C1CommandHolder_GetC1Command_" data-uid="C1.Win.Command.C1CommandHolder.GetC1Command*"></a>
<h4 id="C1_Win_Command_C1CommandHolder_GetC1Command_System_Object_" data-uid="C1.Win.Command.C1CommandHolder.GetC1Command(System.Object)">GetC1Command(object)</h4>
<div class="markdown level1 summary"><p>Determines the command (of the type C1Command or inherited) invoked when the control's default (or, if there is none, Click) event fires.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Description(&quot;C1CommandHolder.C1Command&quot;, &quot;Determines the command (of the type C1Command or inherited) invoked when the control&#39;s default (or, if there is none, Click) event fires.&quot;)]
public C1Command GetC1Command(object control)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Description(&quot;C1CommandHolder.C1Command&quot;, &quot;Determines the command (of the type C1Command or inherited) invoked when the control&#39;s default (or, if there is none, Click) event fires.&quot;)&gt;
Public Function GetC1Command(control As Object) As C1Command</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.object">object</a></td>
      <td><span class="parametername">control</span></td>
      <td></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.Win.Command.C1Command.html">C1Command</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
