# GrapeCity.Documents.Word.InvalidContentControlChildControlException.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_InvalidContentControlChildControlException__ctor_" data-uid="GrapeCity.Documents.Word.InvalidContentControlChildControlException.#ctor*">InvalidContentControlChildControlException Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_InvalidContentControlChildControlException__ctor_" data-uid="GrapeCity.Documents.Word.InvalidContentControlChildControlException.#ctor*"></a>
<h4 id="GrapeCity_Documents_Word_InvalidContentControlChildControlException__ctor_GrapeCity_Documents_Word_ContentControl_GrapeCity_Documents_Word_ContentControlType_" data-uid="GrapeCity.Documents.Word.InvalidContentControlChildControlException.#ctor(GrapeCity.Documents.Word.ContentControl,GrapeCity.Documents.Word.ContentControlType)">InvalidContentControlChildControlException(ContentControl, ContentControlType)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Word.InvalidContentControlChildControlException.html">InvalidContentControlChildControlException</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 InvalidContentControlChildControlException(ContentControl contentControl, ContentControlType allowedControlType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(contentControl As ContentControl, allowedControlType As ContentControlType)</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.ContentControlType.html">ContentControlType</a></td>
      <td><span class="parametername">allowedControlType</span></td>
      <td><p>The allowed content control type to insert.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
