# C1.Win.Util.CodeRange.IsSurrogatePair

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Util_CodeRange_IsSurrogatePair_" data-uid="C1.Win.Util.CodeRange.IsSurrogatePair*">IsSurrogatePair Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Util_CodeRange_IsSurrogatePair_" data-uid="C1.Win.Util.CodeRange.IsSurrogatePair*"></a>
<h4 id="C1_Win_Util_CodeRange_IsSurrogatePair_System_String_System_Int32_" data-uid="C1.Win.Util.CodeRange.IsSurrogatePair(System.String,System.Int32)">IsSurrogatePair(string, int)</h4>
<div class="markdown level1 summary"><p>Whether is pair of surrogate characters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool IsSurrogatePair(string text, int idx)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function IsSurrogatePair(text As String, idx As Integer) 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.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The text string for test.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">idx</span></td>
      <td><p>The index of text.</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><b>true</b> if is pair of surrogate characters, otherwise <b>false</b>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Util_CodeRange_IsSurrogatePair_" data-uid="C1.Win.Util.CodeRange.IsSurrogatePair*"></a>
<h4 id="C1_Win_Util_CodeRange_IsSurrogatePair_System_Char___System_Int32_" data-uid="C1.Win.Util.CodeRange.IsSurrogatePair(System.Char[],System.Int32)">IsSurrogatePair(char[], int)</h4>
<div class="markdown level1 summary"><p>Whether is pair of surrogate characters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool IsSurrogatePair(char[] text, int idx)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function IsSurrogatePair(text As Char(), idx As Integer) 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.char">char</a>[]</td>
      <td><span class="parametername">text</span></td>
      <td><p>The text as character's array for test.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">idx</span></td>
      <td><p>The index of array.</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><b>true</b> if is pair of surrogate characters, otherwise <b>false</b>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
