# C1.WPF.RichTextBox.Documents.C1TextElement.Group

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_Documents_C1TextElement_Group_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElement.Group*">Group Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_Documents_C1TextElement_Group_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElement.Group*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextElement_Group_C1_WPF_RichTextBox_Documents_C1TextElement_System_Int32_System_Int32_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElement.Group(C1.WPF.RichTextBox.Documents.C1TextElement,System.Int32,System.Int32)">Group(C1TextElement, int, int)</h4>
<div class="markdown level1 summary"><p>Groups some of this C1TextElement children,
all children in the specified range are added to the new parent,
and the parent is inserted at the range start.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Group(C1TextElement parent, int start, int count)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Group(parent As C1TextElement, start As Integer, count As Integer)</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.WPF.RichTextBox.Documents.C1TextElement.html">C1TextElement</a></td>
      <td><span class="parametername">parent</span></td>
      <td><p>A <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextElement.html">C1TextElement</a> used to group the children.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The index of the first child added to the range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">count</span></td>
      <td><p>The number of children in the range.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
