# C1.C1Preview.ParagraphObjectCollection.AddImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_ParagraphObjectCollection_AddImage_" data-uid="C1.C1Preview.ParagraphObjectCollection.AddImage*">AddImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_ParagraphObjectCollection_AddImage_" data-uid="C1.C1Preview.ParagraphObjectCollection.AddImage*"></a>
<h4 id="C1_C1Preview_ParagraphObjectCollection_AddImage_System_Drawing_Image_" data-uid="C1.C1Preview.ParagraphObjectCollection.AddImage(System.Drawing.Image)">AddImage(Image)</h4>
<div class="markdown level1 summary"><p>Adds an image to the current paragraph content.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphImage AddImage(Image image)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddImage(image As Image) As ParagraphImage</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.drawing.image">Image</a></td>
      <td><span class="parametername">image</span></td>
      <td><p>The image to add.</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="C1.C1Preview.ParagraphImage.html">ParagraphImage</a></td>
      <td><p>A <a class="xref" href="C1.C1Preview.ParagraphImage.html">ParagraphImage</a> object representing the specified image.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_ParagraphObjectCollection_AddImage_System_Drawing_Image__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates a <a class="xref" href="C1.C1Preview.ParagraphImage.html">ParagraphImage</a>,
initializes it with the specified image,
and adds it to the current collection.</p>
</div>


<a id="C1_C1Preview_ParagraphObjectCollection_AddImage_" data-uid="C1.C1Preview.ParagraphObjectCollection.AddImage*"></a>
<h4 id="C1_C1Preview_ParagraphObjectCollection_AddImage_System_String_" data-uid="C1.C1Preview.ParagraphObjectCollection.AddImage(System.String)">AddImage(string)</h4>
<div class="markdown level1 summary"><p>Adds an image to the current paragraph content.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphImage AddImage(string imageName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddImage(imageName As String) As ParagraphImage</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.string">string</a></td>
      <td><span class="parametername">imageName</span></td>
      <td><p>A string that is assigned to the <a class="xref" href="C1.C1Preview.ParagraphImage.ImageName.html#C1_C1Preview_ParagraphImage_ImageName">ImageName</a> property.</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="C1.C1Preview.ParagraphImage.html">ParagraphImage</a></td>
      <td><p>A <a class="xref" href="C1.C1Preview.ParagraphImage.html">ParagraphImage</a> object representing the specified named image.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_ParagraphObjectCollection_AddImage_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates a <a class="xref" href="C1.C1Preview.ParagraphImage.html">ParagraphImage</a>,
initializes it with the specified image name,
and adds it to the current collection.</p>
</div>


<a id="C1_C1Preview_ParagraphObjectCollection_AddImage_" data-uid="C1.C1Preview.ParagraphObjectCollection.AddImage*"></a>
<h4 id="C1_C1Preview_ParagraphObjectCollection_AddImage_System_Drawing_Image_C1_C1Preview_Style_" data-uid="C1.C1Preview.ParagraphObjectCollection.AddImage(System.Drawing.Image,C1.C1Preview.Style)">AddImage(Image, Style)</h4>
<div class="markdown level1 summary"><p>Adds an image with a specified style to the current paragraph content.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ParagraphImage AddImage(Image image, Style style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddImage(image As Image, style As Style) As ParagraphImage</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.drawing.image">Image</a></td>
      <td><span class="parametername">image</span></td>
      <td><p>The image to add.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>A style used to render the image.</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="C1.C1Preview.ParagraphImage.html">ParagraphImage</a></td>
      <td><p>A <a class="xref" href="C1.C1Preview.ParagraphImage.html">ParagraphImage</a> object representing the specified image.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_ParagraphObjectCollection_AddImage_System_Drawing_Image_C1_C1Preview_Style__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates a <a class="xref" href="C1.C1Preview.ParagraphImage.html">ParagraphImage</a>,
initializes it with the specified image and style,
and adds it to the current collection.</p>
</div>
</div>
