# C1.Win.Command.CommandClickEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Command_CommandClickEventArgs__ctor_" data-uid="C1.Win.Command.CommandClickEventArgs.#ctor*">CommandClickEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Command_CommandClickEventArgs__ctor_" data-uid="C1.Win.Command.CommandClickEventArgs.#ctor*"></a>
<h4 id="C1_Win_Command_CommandClickEventArgs__ctor_C1_Win_Command_C1Command_C1_Win_Command_ClickSourceEnum_C1_Win_Command_C1CommandLink_C1_Win_Command_ContextInfo_" data-uid="C1.Win.Command.CommandClickEventArgs.#ctor(C1.Win.Command.C1Command,C1.Win.Command.ClickSourceEnum,C1.Win.Command.C1CommandLink,C1.Win.Command.ContextInfo)">CommandClickEventArgs(C1Command, ClickSourceEnum, C1CommandLink, ContextInfo)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the CommandClickEventArgs class</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CommandClickEventArgs(C1Command command, ClickSourceEnum clickSource, C1CommandLink callerLink, ContextInfo contextInfo)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(command As C1Command, clickSource As ClickSourceEnum, callerLink As C1CommandLink, contextInfo As ContextInfo)</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="C1.Win.Command.C1Command.html">C1Command</a></td>
      <td><span class="parametername">command</span></td>
      <td><p>The command invoked by the user.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Command.ClickSourceEnum.html">ClickSourceEnum</a></td>
      <td><span class="parametername">clickSource</span></td>
      <td><p>Determines what caused the click event to occur.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Command.C1CommandLink.html">C1CommandLink</a></td>
      <td><span class="parametername">callerLink</span></td>
      <td><p>Gets the command link which was clicked by the user.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Command.ContextInfo.html">ContextInfo</a></td>
      <td><span class="parametername">contextInfo</span></td>
      <td><p>Gets the context info for events fired from a context menu.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Command_CommandClickEventArgs__ctor_" data-uid="C1.Win.Command.CommandClickEventArgs.#ctor*"></a>
<h4 id="C1_Win_Command_CommandClickEventArgs__ctor_C1_Win_Command_C1Command_C1_Win_Command_ClickEventArgs_" data-uid="C1.Win.Command.CommandClickEventArgs.#ctor(C1.Win.Command.C1Command,C1.Win.Command.ClickEventArgs)">CommandClickEventArgs(C1Command, ClickEventArgs)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the CommandClickEventArgs class</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CommandClickEventArgs(C1Command command, ClickEventArgs e)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(command As C1Command, e As ClickEventArgs)</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="C1.Win.Command.C1Command.html">C1Command</a></td>
      <td><span class="parametername">command</span></td>
      <td><p>The command invoked by the user.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Command.ClickEventArgs.html">ClickEventArgs</a></td>
      <td><span class="parametername">e</span></td>
      <td><p>A BeforeSelectWindowEventArgs object that contains the event data.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
