# GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand" data-uid="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand" class="text-break">SpreadCommand Class
</h1>
  <div class="markdown level0 summary"><p>Represents a <a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a> related command.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">SpreadCommand</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.icommand">ICommand</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Wpf.SpreadSheet.UI.Commands.html">GrapeCity.Wpf.SpreadSheet.UI.Commands</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.dll</h6>
  <h5 id="GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SpreadCommand : ICommand</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SpreadCommand
    Implements ICommand</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand_IncludeShapes" data-uid="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.IncludeShapes">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.IncludeShapes.html#GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand_IncludeShapes">IncludeShapes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a boolean value indicating whether the command works on shapes.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand_Name" data-uid="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.Name">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.Name.html#GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the name of the command.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Wpf_SpreadSheet_UI_Commands_SpreadCommand_CanExecute_System_Object_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_" data-uid="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.CanExecute(System.Object,GrapeCity.Wpf.SpreadSheet.GcSpreadSheet)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.CanExecute.html#GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand_CanExecute_System_Object_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_">CanExecute(object, GcSpreadSheet)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether this <a class="xref" href="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.html">SpreadCommand</a> can execute in <a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a>'s current state.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand_CanExecuteCore_System_Object_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_" data-uid="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.CanExecuteCore(System.Object,GrapeCity.Wpf.SpreadSheet.GcSpreadSheet)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.CanExecuteCore.html#GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand_CanExecuteCore_System_Object_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_">CanExecuteCore(object, GcSpreadSheet)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether this <a class="xref" href="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.html">SpreadCommand</a> can execute in <a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a>'s current state.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand_Execute_System_Object_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_" data-uid="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.Execute(System.Object,GrapeCity.Wpf.SpreadSheet.GcSpreadSheet)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.Execute.html#GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand_Execute_System_Object_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_">Execute(object, GcSpreadSheet)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.html">SpreadCommand</a> on the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a> target.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand_ExecuteCore_System_Object_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_" data-uid="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.ExecuteCore(System.Object,GrapeCity.Wpf.SpreadSheet.GcSpreadSheet)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.ExecuteCore.html#GrapeCity_Wpf_SpreadSheet_UI_Commands_SpreadCommand_ExecuteCore_System_Object_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_">ExecuteCore(object, GcSpreadSheet)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.html">SpreadCommand</a> on the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a> target.</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_Wpf_SpreadSheet_UI_Commands_SpreadCommand_CanExecuteChanged" data-uid="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.CanExecuteChanged">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.CanExecuteChanged.html">CanExecuteChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when changes occur that affect whether or not the command should execute.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
