# GrapeCity.Documents.Word.InvalidContentControlLevelParentChildException.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_InvalidContentControlLevelParentChildException__ctor_" data-uid="GrapeCity.Documents.Word.InvalidContentControlLevelParentChildException.#ctor*">InvalidContentControlLevelParentChildException Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_InvalidContentControlLevelParentChildException__ctor_" data-uid="GrapeCity.Documents.Word.InvalidContentControlLevelParentChildException.#ctor*"></a>
<h4 id="GrapeCity_Documents_Word_InvalidContentControlLevelParentChildException__ctor_GrapeCity_Documents_Word_ContentControl_GrapeCity_Documents_Word_ContentObject_System_Type_" data-uid="GrapeCity.Documents.Word.InvalidContentControlLevelParentChildException.#ctor(GrapeCity.Documents.Word.ContentControl,GrapeCity.Documents.Word.ContentObject,System.Type)">InvalidContentControlLevelParentChildException(ContentControl, ContentObject, Type)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Word.InvalidContentControlLevelParentChildException.html">InvalidContentControlLevelParentChildException</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 InvalidContentControlLevelParentChildException(ContentControl contentControl, ContentObject parent, Type allowedChildType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(contentControl As ContentControl, parent As ContentObject, allowedChildType As Type)</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="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a></td>
      <td><span class="parametername">parent</span></td>
      <td><p>The parent content object inside the content control where to insert the child content object.</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>
  </tbody>
</table>
</div>
