# GrapeCity.Viewer.Common.ICommand

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Viewer_Common_ICommand" data-uid="GrapeCity.Viewer.Common.ICommand" class="text-break">ICommand Interface
</h1>
  <div class="markdown level0 summary"><p>Defines the contract for commanding, using the same contract as used in WPF.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Viewer.Common.html">GrapeCity.Viewer.Common</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Common.dll</h6>
  <h5 id="GrapeCity_Viewer_Common_ICommand_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface ICommand</code></pre>
  </div>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Viewer_Common_ICommand_CanExecute_System_Object_" data-uid="GrapeCity.Viewer.Common.ICommand.CanExecute(System.Object)">
          <a class="xref" href="GrapeCity.Viewer.Common.ICommand.CanExecute.html#GrapeCity_Viewer_Common_ICommand_CanExecute_System_Object_">CanExecute(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the method that determines whether the command can execute in its current state.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Viewer_Common_ICommand_Execute_System_Object_" data-uid="GrapeCity.Viewer.Common.ICommand.Execute(System.Object)">
          <a class="xref" href="GrapeCity.Viewer.Common.ICommand.Execute.html#GrapeCity_Viewer_Common_ICommand_Execute_System_Object_">Execute(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the method to be called when the command is invoked.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Viewer_Common_ICommand_CanExecuteChanged" data-uid="GrapeCity.Viewer.Common.ICommand.CanExecuteChanged">
          <a class="xref" href="GrapeCity.Viewer.Common.ICommand.CanExecuteChanged.html">CanExecuteChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when changes occur that affect whether the command should execute.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
