# C1.Framework.Html.HtmlRenderer.Layout

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Html_HtmlRenderer_Layout_" data-uid="C1.Framework.Html.HtmlRenderer.Layout*">Layout Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Html_HtmlRenderer_Layout_" data-uid="C1.Framework.Html.HtmlRenderer.Layout*"></a>
<h4 id="C1_Framework_Html_HtmlRenderer_Layout_System_String_System_Drawing_Font_System_Drawing_Brush_System_Single_" data-uid="C1.Framework.Html.HtmlRenderer.Layout(System.String,System.Drawing.Font,System.Drawing.Brush,System.Single)">Layout(string, Font, Brush, float)</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 Layout(string text, Font font, Brush brush, float width)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Layout(text As String, font As Font, brush As Brush, width As Single)</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.single">float</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width in points.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Html_HtmlRenderer_Layout_" data-uid="C1.Framework.Html.HtmlRenderer.Layout*"></a>
<h4 id="C1_Framework_Html_HtmlRenderer_Layout_System_IntPtr_System_String_System_Drawing_Font_System_Drawing_Brush_System_Single_System_Boolean_" data-uid="C1.Framework.Html.HtmlRenderer.Layout(System.IntPtr,System.String,System.Drawing.Font,System.Drawing.Brush,System.Single,System.Boolean)">Layout(nint, string, Font, Brush, float, bool)</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 Layout(nint hdc, string text, Font font, Brush brush, float width, bool rtl = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Layout(hdc As IntPtr, text As String, font As Font, brush As Brush, width As Single, Optional rtl As Boolean = False)</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.intptr">nint</a></td>
      <td><span class="parametername">hdc</span></td>
      <td><p>The graphics device context handler.</p>
</td>
    </tr>
    <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.single">float</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">rtl</span></td>
      <td><p>The right-to-left layout.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
