# C1.Win.Command.C1CommandHolder.SetC1Command

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Command_C1CommandHolder_SetC1Command_" data-uid="C1.Win.Command.C1CommandHolder.SetC1Command*">SetC1Command Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Command_C1CommandHolder_SetC1Command_" data-uid="C1.Win.Command.C1CommandHolder.SetC1Command*"></a>
<h4 id="C1_Win_Command_C1CommandHolder_SetC1Command_System_Object_C1_Win_Command_C1Command_" data-uid="C1.Win.Command.C1CommandHolder.SetC1Command(System.Object,C1.Win.Command.C1Command)">SetC1Command(object, C1Command)</h4>
<div class="markdown level1 summary"><p>Set 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">public void SetC1Command(object control, C1Command value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetC1Command(control As Object, value 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>
    <tr>
      <td><a class="xref" href="C1.Win.Command.C1Command.html">C1Command</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
