# GrapeCity.Spreadsheet.Commands.CommandManager.Undo

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Commands_CommandManager_Undo_" data-uid="GrapeCity.Spreadsheet.Commands.CommandManager.Undo*">Undo Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Commands_CommandManager_Undo_" data-uid="GrapeCity.Spreadsheet.Commands.CommandManager.Undo*"></a>
<h4 id="GrapeCity_Spreadsheet_Commands_CommandManager_Undo" data-uid="GrapeCity.Spreadsheet.Commands.CommandManager.Undo">Undo()</h4>
<div class="markdown level1 summary"><p>Undo the last executed 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 Undo()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Undo() As CommandResult</code></pre>
</div>
<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><code>true</code> if the command is successfully executed, <code>false</code> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
