# C1.Win.GanttView.Task.SplitTask

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_GanttView_Task_SplitTask_" data-uid="C1.Win.GanttView.Task.SplitTask*">SplitTask Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_GanttView_Task_SplitTask_" data-uid="C1.Win.GanttView.Task.SplitTask*"></a>
<h4 id="C1_Win_GanttView_Task_SplitTask_System_DateTime_System_Double_" data-uid="C1.Win.GanttView.Task.SplitTask(System.DateTime,System.Double)">SplitTask(DateTime, double)</h4>
<div class="markdown level1 summary"><p>Splits the task.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override bool SplitTask(DateTime start, double duration)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function SplitTask(start As Date, duration As Double) 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="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The beginning of suspension.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">duration</span></td>
      <td><p>The duration of suspension.</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>True if the splitting is succeeded, false otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Win.GanttView.BaseTask.SplitTask.html#C1_Win_GanttView_BaseTask_SplitTask_System_DateTime_System_Double_">BaseTask.SplitTask(DateTime, double)</a></div>


<a id="C1_Win_GanttView_Task_SplitTask_" data-uid="C1.Win.GanttView.Task.SplitTask*"></a>
<h4 id="C1_Win_GanttView_Task_SplitTask_System_Double___" data-uid="C1.Win.GanttView.Task.SplitTask(System.Double[])">SplitTask(double[])</h4>
<div class="markdown level1 summary"><p>Splits the task.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SplitTask(double[] durations)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SplitTask(durations As Double()) 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="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</td>
      <td><span class="parametername">durations</span></td>
      <td><p>The alternating durations of work and suspension periods. The array must contain the odd number of values.</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>True if the splitting is succeeded, false otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
