# FarPoint.Web.Spread.Renderer.ImageRenderer.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_Renderer_ImageRenderer__ctor_" data-uid="FarPoint.Web.Spread.Renderer.ImageRenderer.#ctor*">ImageRenderer Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_Renderer_ImageRenderer__ctor_" data-uid="FarPoint.Web.Spread.Renderer.ImageRenderer.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Renderer_ImageRenderer__ctor" data-uid="FarPoint.Web.Spread.Renderer.ImageRenderer.#ctor">ImageRenderer()</h4>
<div class="markdown level1 summary"><p>Creates a new image cell renderer control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ImageRenderer()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Web_Spread_Renderer_ImageRenderer__ctor_" data-uid="FarPoint.Web.Spread.Renderer.ImageRenderer.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Renderer_ImageRenderer__ctor_System_String_" data-uid="FarPoint.Web.Spread.Renderer.ImageRenderer.#ctor(System.String)">ImageRenderer(string)</h4>
<div class="markdown level1 summary"><p>Creates an image cell renderer control with the specified picture.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ImageRenderer(string imageUrl)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(imageUrl As String)</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">imageUrl</span></td>
      <td><p>Path and file name of the picture to display in the image cell</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Renderer_ImageRenderer__ctor_" data-uid="FarPoint.Web.Spread.Renderer.ImageRenderer.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Renderer_ImageRenderer__ctor_System_String_System_Boolean_" data-uid="FarPoint.Web.Spread.Renderer.ImageRenderer.#ctor(System.String,System.Boolean)">ImageRenderer(string, bool)</h4>
<div class="markdown level1 summary"><p>Creates an image cell renderer control with the specified
picture and text alignment.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ImageRenderer(string imageUrl, bool textOnRight)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(imageUrl As String, textOnRight As Boolean)</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">imageUrl</span></td>
      <td><p>Path and file name of the picture to display in the image cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">textOnRight</span></td>
      <td><p>Whether the text is displayed on the right side of the image</p>
</td>
    </tr>
  </tbody>
</table>
</div>
