# C1.Maui.Core.Range-1.Substract

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Maui_Core_Range_1_Substract_" data-uid="C1.Maui.Core.Range`1.Substract*">Substract Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Maui_Core_Range_1_Substract_" data-uid="C1.Maui.Core.Range`1.Substract*"></a>
<h4 id="C1_Maui_Core_Range_1_Substract_C1_Maui_Core_Range__0__System_Func__0__0__System_Func__0__0__" data-uid="C1.Maui.Core.Range`1.Substract(C1.Maui.Core.Range{`0},System.Func{`0,`0},System.Func{`0,`0})">Substract(Range&lt;T&gt;, Func&lt;T, T&gt;, Func&lt;T, T&gt;)</h4>
<div class="markdown level1 summary"><p>Returns the result of subtracting a range to the current one. This could lead to a split range
in case the one that is being subtracted is contained in the current one.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IEnumerable&lt;Range&lt;T&gt;&gt; Substract(Range&lt;T&gt; value, Func&lt;T, T&gt; incrementor, Func&lt;T, T&gt; decrementor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Substract(value As Range(Of T), incrementor As Func(Of T, T), decrementor As Func(Of T, T)) As IEnumerable(Of Range(Of T))</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="C1.Maui.Core.Range-1.html">Range</a>&lt;T&gt;</td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T, T&gt;</td>
      <td><span class="parametername">incrementor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T, T&gt;</td>
      <td><span class="parametername">decrementor</span></td>
      <td></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.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.Maui.Core.Range-1.html">Range</a>&lt;T&gt;&gt;</td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
