# GrapeCity.Documents.Word.Body

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_Body" data-uid="GrapeCity.Documents.Word.Body" class="text-break">Body Class
</h1>
  <div class="markdown level0 summary"><p>Represents the body of a document or other content containers.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="GrapeCity.Documents.Word.ContentCollection-1.html">ContentCollection</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a>&gt;</div>
    <div class="level2"><a class="xref" href="GrapeCity.Documents.Word.ContentObjectCollection-1.html">ContentObjectCollection</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a>&gt;</div>
    <div class="level3"><a class="xref" href="GrapeCity.Documents.Word.RangeBase.html">RangeBase</a></div>
    <div class="level4"><span class="xref">Body</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Word.IContentList-1.html">IContentList</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_Body_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Body : RangeBase, IContentList&lt;ContentObject&gt;, IReadOnlyList&lt;ContentObject&gt;, IReadOnlyCollection&lt;ContentObject&gt;, IEnumerable&lt;ContentObject&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Body
    Inherits RangeBase
    Implements IContentList(Of ContentObject), IReadOnlyList(Of ContentObject), IReadOnlyCollection(Of ContentObject), IEnumerable(Of ContentObject), IEnumerable</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_Children" data-uid="GrapeCity.Documents.Word.Body.Children">
          <a class="xref" href="GrapeCity.Documents.Word.Body.Children.html#GrapeCity_Documents_Word_Body_Children">Children</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the top level children of this body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_Owner" data-uid="GrapeCity.Documents.Word.Body.Owner">
          <a class="xref" href="GrapeCity.Documents.Word.Body.Owner.html#GrapeCity_Documents_Word_Body_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the owner of the body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_Type" data-uid="GrapeCity.Documents.Word.Body.Type">
          <a class="xref" href="GrapeCity.Documents.Word.Body.Type.html#GrapeCity_Documents_Word_Body_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Documents.Word.BodyType.html">BodyType</a> of this body.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_AddContentControl_GrapeCity_Documents_Word_ContentControlType_System_Boolean_" data-uid="GrapeCity.Documents.Word.Body.AddContentControl(GrapeCity.Documents.Word.ContentControlType,System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Word.Body.AddContentControl.html#GrapeCity_Documents_Word_Body_AddContentControl_GrapeCity_Documents_Word_ContentControlType_System_Boolean_">AddContentControl(ContentControlType, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.ContentControl.html">ContentControl</a> to the end of the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_AddParagraph" data-uid="GrapeCity.Documents.Word.Body.AddParagraph">
          <a class="xref" href="GrapeCity.Documents.Word.Body.AddParagraph.html#GrapeCity_Documents_Word_Body_AddParagraph">AddParagraph()</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Paragraph.html">Paragraph</a> to the end of the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_AddParagraph_GrapeCity_Documents_Word_Style_" data-uid="GrapeCity.Documents.Word.Body.AddParagraph(GrapeCity.Documents.Word.Style)">
          <a class="xref" href="GrapeCity.Documents.Word.Body.AddParagraph.html#GrapeCity_Documents_Word_Body_AddParagraph_GrapeCity_Documents_Word_Style_">AddParagraph(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Paragraph.html">Paragraph</a> to the end of the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_AddParagraph_System_String_" data-uid="GrapeCity.Documents.Word.Body.AddParagraph(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.Body.AddParagraph.html#GrapeCity_Documents_Word_Body_AddParagraph_System_String_">AddParagraph(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Paragraph.html">Paragraph</a> to the end of the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_AddParagraph_System_String_GrapeCity_Documents_Word_Style_" data-uid="GrapeCity.Documents.Word.Body.AddParagraph(System.String,GrapeCity.Documents.Word.Style)">
          <a class="xref" href="GrapeCity.Documents.Word.Body.AddParagraph.html#GrapeCity_Documents_Word_Body_AddParagraph_System_String_GrapeCity_Documents_Word_Style_">AddParagraph(string, Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Paragraph.html">Paragraph</a> to the end of the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_AddTable" data-uid="GrapeCity.Documents.Word.Body.AddTable">
          <a class="xref" href="GrapeCity.Documents.Word.Body.AddTable.html#GrapeCity_Documents_Word_Body_AddTable">AddTable()</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a> to the end of the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_AddTable_GrapeCity_Documents_Word_Style_" data-uid="GrapeCity.Documents.Word.Body.AddTable(GrapeCity.Documents.Word.Style)">
          <a class="xref" href="GrapeCity.Documents.Word.Body.AddTable.html#GrapeCity_Documents_Word_Body_AddTable_GrapeCity_Documents_Word_Style_">AddTable(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a> to the end of the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_AddTable_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Word.Body.AddTable(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Word.Body.AddTable.html#GrapeCity_Documents_Word_Body_AddTable_System_Int32_System_Int32_">AddTable(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a> to the end of the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_AddTable_System_Int32_System_Int32_GrapeCity_Documents_Word_Style_" data-uid="GrapeCity.Documents.Word.Body.AddTable(System.Int32,System.Int32,GrapeCity.Documents.Word.Style)">
          <a class="xref" href="GrapeCity.Documents.Word.Body.AddTable.html#GrapeCity_Documents_Word_Body_AddTable_System_Int32_System_Int32_GrapeCity_Documents_Word_Style_">AddTable(int, int, Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a> to the end of the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_AddTable_System_String_____" data-uid="GrapeCity.Documents.Word.Body.AddTable(System.String[][])">
          <a class="xref" href="GrapeCity.Documents.Word.Body.AddTable.html#GrapeCity_Documents_Word_Body_AddTable_System_String_____">AddTable(string[][])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a> to the end of the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_AddTable_System_String_____GrapeCity_Documents_Word_Style_" data-uid="GrapeCity.Documents.Word.Body.AddTable(System.String[][],GrapeCity.Documents.Word.Style)">
          <a class="xref" href="GrapeCity.Documents.Word.Body.AddTable.html#GrapeCity_Documents_Word_Body_AddTable_System_String_____GrapeCity_Documents_Word_Style_">AddTable(string[][], Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Table.html">Table</a> to the end of the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_CanAdd_System_Type_" data-uid="GrapeCity.Documents.Word.Body.CanAdd(System.Type)">
          <a class="xref" href="GrapeCity.Documents.Word.Body.CanAdd.html#GrapeCity_Documents_Word_Body_CanAdd_System_Type_">CanAdd(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether a <a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a> of the specified type can be added to the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_CanAdd_System_Type_System_Exception__" data-uid="GrapeCity.Documents.Word.Body.CanAdd(System.Type,System.Exception@)">
          <a class="xref" href="GrapeCity.Documents.Word.Body.CanAdd.html#GrapeCity_Documents_Word_Body_CanAdd_System_Type_System_Exception__">CanAdd(Type, out Exception)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether a <a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a> of the specified type can be added to the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_CanAddContentControl_GrapeCity_Documents_Word_ContentControlType_" data-uid="GrapeCity.Documents.Word.Body.CanAddContentControl(GrapeCity.Documents.Word.ContentControlType)">
          <a class="xref" href="GrapeCity.Documents.Word.Body.CanAddContentControl.html#GrapeCity_Documents_Word_Body_CanAddContentControl_GrapeCity_Documents_Word_ContentControlType_">CanAddContentControl(ContentControlType)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether a <a class="xref" href="GrapeCity.Documents.Word.ContentControl.html">ContentControl</a> of the specified type can be added to the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_CanAddContentControl_GrapeCity_Documents_Word_ContentControlType_System_Exception__" data-uid="GrapeCity.Documents.Word.Body.CanAddContentControl(GrapeCity.Documents.Word.ContentControlType,System.Exception@)">
          <a class="xref" href="GrapeCity.Documents.Word.Body.CanAddContentControl.html#GrapeCity_Documents_Word_Body_CanAddContentControl_GrapeCity_Documents_Word_ContentControlType_System_Exception__">CanAddContentControl(ContentControlType, out Exception)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether a <a class="xref" href="GrapeCity.Documents.Word.ContentControl.html">ContentControl</a> of the specified type can be added to the current body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_Clear" data-uid="GrapeCity.Documents.Word.Body.Clear">
          <a class="xref" href="GrapeCity.Documents.Word.Body.Clear.html#GrapeCity_Documents_Word_Body_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears all content objects in this body.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Body_GetChildren__1" data-uid="GrapeCity.Documents.Word.Body.GetChildren``1">
          <a class="xref" href="GrapeCity.Documents.Word.Body.GetChildren.html#GrapeCity_Documents_Word_Body_GetChildren__1">GetChildren&lt;T&gt;()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of this body's children of a specified type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.Documents.Word.RangeBaseFindReplaceExtensions.Find.html#GrapeCity_Documents_Word_RangeBaseFindReplaceExtensions_Find_GrapeCity_Documents_Word_RangeBase_GrapeCity_Documents_Word_FindOptions_">RangeBaseFindReplaceExtensions.Find(RangeBase, FindOptions)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.Documents.Word.RangeBaseFindReplaceExtensions.Find.html#GrapeCity_Documents_Word_RangeBaseFindReplaceExtensions_Find_GrapeCity_Documents_Word_RangeBase_System_String_GrapeCity_Documents_Word_FindOptions_">RangeBaseFindReplaceExtensions.Find(RangeBase, string, FindOptions)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.Documents.Word.RangeBaseFindReplaceExtensions.Replace.html#GrapeCity_Documents_Word_RangeBaseFindReplaceExtensions_Replace_GrapeCity_Documents_Word_RangeBase_System_String_System_String_GrapeCity_Documents_Word_FindReplaceOptions_">RangeBaseFindReplaceExtensions.Replace(RangeBase, string, string, FindReplaceOptions)</a>
  </div>

</div>
