# C1.Framework.Html.HtmlRenderer.LayoutInPixels

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Html_HtmlRenderer_LayoutInPixels_" data-uid="C1.Framework.Html.HtmlRenderer.LayoutInPixels*">LayoutInPixels Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Html_HtmlRenderer_LayoutInPixels_" data-uid="C1.Framework.Html.HtmlRenderer.LayoutInPixels*"></a>
<h4 id="C1_Framework_Html_HtmlRenderer_LayoutInPixels_System_String_System_Drawing_Font_System_Drawing_Brush_System_Int32_" data-uid="C1.Framework.Html.HtmlRenderer.LayoutInPixels(System.String,System.Drawing.Font,System.Drawing.Brush,System.Int32)">LayoutInPixels(string, Font, Brush, int)</h4>
<div class="markdown level1 summary"><p>Create or update this HtmlElement with the provided info.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LayoutInPixels(string text, Font font, Brush brush, int width)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub LayoutInPixels(text As String, font As Font, brush As Brush, width As Integer)</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">text</span></td>
      <td><p>The text for create or update in the HTML element.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>The font of the text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.brush">Brush</a></td>
      <td><span class="parametername">brush</span></td>
      <td><p>The text brush.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width in pixels.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
