# GrapeCity.Documents.Word.PictureCollection.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_PictureCollection_Add_" data-uid="GrapeCity.Documents.Word.PictureCollection.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_PictureCollection_Add_" data-uid="GrapeCity.Documents.Word.PictureCollection.Add*"></a>
<h4 id="GrapeCity_Documents_Word_PictureCollection_Add" data-uid="GrapeCity.Documents.Word.PictureCollection.Add">Add()</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a> to this collection at the <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html#GrapeCity_Documents_Word_InsertLocation_End">End</a> 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 Add()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add() As Picture</code></pre>
</div>
<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 added <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_PictureCollection_Add_" data-uid="GrapeCity.Documents.Word.PictureCollection.Add*"></a>
<h4 id="GrapeCity_Documents_Word_PictureCollection_Add_System_Byte___System_String_" data-uid="GrapeCity.Documents.Word.PictureCollection.Add(System.Byte[],System.String)">Add(byte[], string)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a> to this collection at the <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html#GrapeCity_Documents_Word_InsertLocation_End">End</a> 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 Add(byte[] imageBytes, string contentType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(imageBytes As Byte(), contentType As String) 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>
  </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 added <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_PictureCollection_Add_" data-uid="GrapeCity.Documents.Word.PictureCollection.Add*"></a>
<h4 id="GrapeCity_Documents_Word_PictureCollection_Add_GrapeCity_Documents_Drawing_Image_" data-uid="GrapeCity.Documents.Word.PictureCollection.Add(GrapeCity.Documents.Drawing.Image)">Add(Image)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a> to this collection at the <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html#GrapeCity_Documents_Word_InsertLocation_End">End</a> 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 Add(Image image)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(image As Image) 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>
  </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 added <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_Add_GrapeCity_Documents_Drawing_Image__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>


<a id="GrapeCity_Documents_Word_PictureCollection_Add_" data-uid="GrapeCity.Documents.Word.PictureCollection.Add*"></a>
<h4 id="GrapeCity_Documents_Word_PictureCollection_Add_System_Byte___System_String_System_Single_System_Single_" data-uid="GrapeCity.Documents.Word.PictureCollection.Add(System.Byte[],System.String,System.Single,System.Single)">Add(byte[], string, float, float)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a> to this collection at the <a class="xref" href="GrapeCity.Documents.Word.InsertLocation.html#GrapeCity_Documents_Word_InsertLocation_End">End</a> 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 Add(byte[] imageBytes, string contentType, float width, float height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(imageBytes As Byte(), contentType As String, width As Single, height As Single) 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>
  </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 added <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
