# GrapeCity.Documents.Word.PictureCollection.Insert

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_PictureCollection_Insert_" data-uid="GrapeCity.Documents.Word.PictureCollection.Insert*">Insert Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_PictureCollection_Insert_" data-uid="GrapeCity.Documents.Word.PictureCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_PictureCollection_Insert_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.PictureCollection.Insert(GrapeCity.Documents.Word.InsertLocation)">Insert(InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a> into this collection at a specified location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Picture Insert(InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(location As InsertLocation) As Picture</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.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_PictureCollection_Insert_" data-uid="GrapeCity.Documents.Word.PictureCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_PictureCollection_Insert_System_Byte___System_String_System_Single_System_Single_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.PictureCollection.Insert(System.Byte[],System.String,System.Single,System.Single,GrapeCity.Documents.Word.InsertLocation)">Insert(byte[], string, float, float, InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a> into this collection at a specified location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Picture Insert(byte[] imageBytes, string contentType, float width, float height, InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(imageBytes As Byte(), contentType As String, width As Single, height As Single, location As InsertLocation) As Picture</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="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td><span class="parametername">imageBytes</span></td>
      <td><p>The image data representing the picture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">contentType</span></td>
      <td><p>The content type of the image data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The picture's width, in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The picture's height, in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_PictureCollection_Insert_" data-uid="GrapeCity.Documents.Word.PictureCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_PictureCollection_Insert_System_Byte___System_String_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.PictureCollection.Insert(System.Byte[],System.String,GrapeCity.Documents.Word.InsertLocation)">Insert(byte[], string, InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a> into this collection at a specified location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Picture Insert(byte[] imageBytes, string contentType, InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(imageBytes As Byte(), contentType As String, location As InsertLocation) As Picture</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="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td><span class="parametername">imageBytes</span></td>
      <td><p>The image data representing the picture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">contentType</span></td>
      <td><p>The content type of the image data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_PictureCollection_Insert_" data-uid="GrapeCity.Documents.Word.PictureCollection.Insert*"></a>
<h4 id="GrapeCity_Documents_Word_PictureCollection_Insert_GrapeCity_Documents_Drawing_Image_GrapeCity_Documents_Word_InsertLocation_" data-uid="GrapeCity.Documents.Word.PictureCollection.Insert(GrapeCity.Documents.Drawing.Image,GrapeCity.Documents.Word.InsertLocation)">Insert(Image, InsertLocation)</h4>
<div class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a> into this collection at a specified location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Picture Insert(Image image, InsertLocation location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Insert(image As Image, location As InsertLocation) As Picture</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><span class="xref">Image</span></td>
      <td><span class="parametername">image</span></td>
      <td><p>The <span class="xref">GrapeCity.Documents.Drawing.Image</span> object representing the picture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The target <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html">InsertLocation</a> for the insertion.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a>. The size of the picture is set to the size of the source image.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Documents_Word_PictureCollection_Insert_GrapeCity_Documents_Drawing_Image_GrapeCity_Documents_Word_InsertLocation__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Note than this overload inspects the image's Exif rotation data and applies an appropriate picture rotation.</p>
</div>
</div>
