# C1.Win.GanttView.BaseCommand

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_GanttView_BaseCommand" data-uid="C1.Win.GanttView.BaseCommand" class="text-break">BaseCommand Class
</h1>
  <div class="markdown level0 summary"><p>This class represents the a command in GanttView.</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">BaseCommand</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.GanttView.html">C1.Win.GanttView</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.GanttView.10.dll</h6>
  <h5 id="C1_Win_GanttView_BaseCommand_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class BaseCommand</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class BaseCommand</code></pre>
  </div>
  <h5 id="C1_Win_GanttView_BaseCommand_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Implements this class to support undo/redo for you custom action.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_GanttView_BaseCommand__ctor_C1_Win_GanttView_C1GanttView_" data-uid="C1.Win.GanttView.BaseCommand.#ctor(C1.Win.GanttView.C1GanttView)">
          <a class="xref" href="C1.Win.GanttView.BaseCommand.-ctor.html#C1_Win_GanttView_BaseCommand__ctor_C1_Win_GanttView_C1GanttView_">BaseCommand(C1GanttView)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Win.GanttView.BaseCommand.html">BaseCommand</a> class belong to a <a class="xref" href="C1.Win.GanttView.C1GanttView.html">C1GanttView</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_GanttView_BaseCommand_IsFirstTime" data-uid="C1.Win.GanttView.BaseCommand.IsFirstTime">
          <a class="xref" href="C1.Win.GanttView.BaseCommand.IsFirstTime.html">IsFirstTime</a>
        </td>
        <td class="markdown level1 summary"><p>Is frist time to excute the command or not.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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="C1_Win_GanttView_BaseCommand_View" data-uid="C1.Win.GanttView.BaseCommand.View">
          <a class="xref" href="C1.Win.GanttView.BaseCommand.View.html#C1_Win_GanttView_BaseCommand_View">View</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Win.GanttView.C1GanttView.html">C1GanttView</a> object, that's command owner.</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="C1_Win_GanttView_BaseCommand_AddCommandToUndoStack" data-uid="C1.Win.GanttView.BaseCommand.AddCommandToUndoStack">
          <a class="xref" href="C1.Win.GanttView.BaseCommand.AddCommandToUndoStack.html#C1_Win_GanttView_BaseCommand_AddCommandToUndoStack">AddCommandToUndoStack()</a>
        </td>
        <td class="markdown level1 summary"><p>Add command to the undo stack for undo operation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BaseCommand_Do" data-uid="C1.Win.GanttView.BaseCommand.Do">
          <a class="xref" href="C1.Win.GanttView.BaseCommand.Do.html#C1_Win_GanttView_BaseCommand_Do">Do()</a>
        </td>
        <td class="markdown level1 summary"><p>Executes the command without events.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BaseCommand_Execute" data-uid="C1.Win.GanttView.BaseCommand.Execute">
          <a class="xref" href="C1.Win.GanttView.BaseCommand.Execute.html#C1_Win_GanttView_BaseCommand_Execute">Execute()</a>
        </td>
        <td class="markdown level1 summary"><p>Executes the command.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BaseCommand_Undo" data-uid="C1.Win.GanttView.BaseCommand.Undo">
          <a class="xref" href="C1.Win.GanttView.BaseCommand.Undo.html#C1_Win_GanttView_BaseCommand_Undo">Undo()</a>
        </td>
        <td class="markdown level1 summary"><p>Unexecutes the command without events.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BaseCommand_Unexecute" data-uid="C1.Win.GanttView.BaseCommand.Unexecute">
          <a class="xref" href="C1.Win.GanttView.BaseCommand.Unexecute.html#C1_Win_GanttView_BaseCommand_Unexecute">Unexecute()</a>
        </td>
        <td class="markdown level1 summary"><p>Unexecutes the command.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
