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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Maui_Core_Range_1_Split_" data-uid="C1.Maui.Core.Range`1.Split*">Split Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Maui_Core_Range_1_Split_" data-uid="C1.Maui.Core.Range`1.Split*"></a>
<h4 id="C1_Maui_Core_Range_1_Split__0_" data-uid="C1.Maui.Core.Range`1.Split(`0)">Split(T)</h4>
<div class="markdown level1 summary"><p>Splits the range into two.</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; Split(T position)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Split(position As 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><span class="xref">T</span></td>
      <td><span class="parametername">position</span></td>
      <td><p>The position to split the range at.</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.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><p>The split ranges.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></td>
      <td><pre><code class="lang-csharp">position</code></pre> is null.
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><pre><code class="lang-csharp">position</code></pre> is not contained within the range.
</td>
    </tr>
  </tbody>
</table>
</div>
