# FarPoint.Win.Spread.UndoRedo.UndoManager.Execute

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_UndoRedo_UndoManager_Execute_" data-uid="FarPoint.Win.Spread.UndoRedo.UndoManager.Execute*">Execute Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_UndoRedo_UndoManager_Execute_" data-uid="FarPoint.Win.Spread.UndoRedo.UndoManager.Execute*"></a>
<h4 id="FarPoint_Win_Spread_UndoRedo_UndoManager_Execute_GrapeCity_Spreadsheet_Commands_Command_" data-uid="FarPoint.Win.Spread.UndoRedo.UndoManager.Execute(GrapeCity.Spreadsheet.Commands.Command)">Execute(Command)</h4>
<div class="markdown level1 summary"><p>Executes the specified command.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CommandResult Execute(Command command)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Execute(command As Command) As CommandResult</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="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.Commands.Command.html">Command</a></td>
      <td><span class="parametername">command</span></td>
      <td><p>The command to be executed.</p>
</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><span class="xref">CommandResult</span></td>
      <td><p>An <span class="xref">GrapeCity.Spreadsheet.Commands.CommandResult</span> struct which contains information about the execution of action.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_UndoRedo_UndoManager_Execute_" data-uid="FarPoint.Win.Spread.UndoRedo.UndoManager.Execute*"></a>
<h4 id="FarPoint_Win_Spread_UndoRedo_UndoManager_Execute_GrapeCity_Spreadsheet_Commands_Command___" data-uid="FarPoint.Win.Spread.UndoRedo.UndoManager.Execute(GrapeCity.Spreadsheet.Commands.Command[])">Execute(Command[])</h4>
<div class="markdown level1 summary"><p>Executes the list of commands by it's order.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Execute(Command[] commands)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Execute(commands As Command()) As Boolean</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="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.Commands.Command.html">Command</a>[]</td>
      <td><span class="parametername">commands</span></td>
      <td><p>The commands to be executed.</p>
</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>A boolean value indicate commands are executed success or not.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
