# GrapeCity.Documents.Word.InvalidContentControlSingleChildException.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_InvalidContentControlSingleChildException__ctor_" data-uid="GrapeCity.Documents.Word.InvalidContentControlSingleChildException.#ctor*">InvalidContentControlSingleChildException Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_InvalidContentControlSingleChildException__ctor_" data-uid="GrapeCity.Documents.Word.InvalidContentControlSingleChildException.#ctor*"></a>
<h4 id="GrapeCity_Documents_Word_InvalidContentControlSingleChildException__ctor_GrapeCity_Documents_Word_ContentControl_System_Type_System_Boolean_" data-uid="GrapeCity.Documents.Word.InvalidContentControlSingleChildException.#ctor(GrapeCity.Documents.Word.ContentControl,System.Type,System.Boolean)">InvalidContentControlSingleChildException(ContentControl, Type, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Word.InvalidContentControlSingleChildException.html">InvalidContentControlSingleChildException</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public InvalidContentControlSingleChildException(ContentControl contentControl, Type allowedChildType, bool multiLine)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(contentControl As ContentControl, allowedChildType As Type, multiLine 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="GrapeCity.Documents.Word.ContentControl.html">ContentControl</a></td>
      <td><span class="parametername">contentControl</span></td>
      <td><p>The content control inside wich trying to insert.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><span class="parametername">allowedChildType</span></td>
      <td><p>The allowed child type to insert.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">multiLine</span></td>
      <td><p>Whether the content control is multiline text control.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
