# C1.C1Preview.C1PrintDocument.RenderBlockRichText

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1PrintDocument_RenderBlockRichText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockRichText*">RenderBlockRichText Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1PrintDocument_RenderBlockRichText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockRichText*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderBlockRichText_System_String_System_Object_System_Object_C1_C1Preview_Style_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockRichText(System.String,System.Object,System.Object,C1.C1Preview.Style)">RenderBlockRichText(string, object, object, Style)</h4>
<div class="markdown level1 summary"><p>Renders the RTF text.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderBlockRichText(string rtf, object width, object height, Style style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderBlockRichText(rtf As String, width As Object, height As Object, style As Style) 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">rtf</span></td>
      <td><p>Text to render, can be plain text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>If null then parent width will be used.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>If null then autoheight will be used.</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>Style of object.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>Returns true if no warnings occur during rendering the object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_RenderBlockRichText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockRichText*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderBlockRichText_System_String_System_Object_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockRichText(System.String,System.Object)">RenderBlockRichText(string, object)</h4>
<div class="markdown level1 summary"><p>Renders the RTF text with autoheight.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderBlockRichText(string rtf, object width)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderBlockRichText(rtf As String, width As Object) 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">rtf</span></td>
      <td><p>Text to render, can be plain text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>If null then parent width will be used.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>Returns true if no warnings occur during rendering the object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_RenderBlockRichText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockRichText*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderBlockRichText_System_String_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockRichText(System.String)">RenderBlockRichText(string)</h4>
<div class="markdown level1 summary"><p>Renders the RTF text with parent width and autoheight.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderBlockRichText(string rtf)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderBlockRichText(rtf As String) 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">rtf</span></td>
      <td><p>Text to render, can be plain text.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>Returns true if no warnings occur during rendering the object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
