# C1.C1Preview.C1PrintDocument.RenderBlockText

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1PrintDocument_RenderBlockText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText*">RenderBlockText Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1PrintDocument_RenderBlockText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText(System.String)">RenderBlockText(string)</h4>
<div class="markdown level1 summary"><p>Renders a block of text into the block flow of the current document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderBlockText(string text)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderBlockText(text 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">text</span></td>
      <td><p>The text to render.</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><b>true</b> if no warnings were generated by this call, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
The width of the rendered block is set to the width of the page (or column for multi-column layouts),
which is equivalent to setting the <a class="xref" href="C1.C1Preview.RenderObject.Width.html#C1_C1Preview_RenderObject_Width">Width</a> of a <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> to <b>"parent.width"</b>.
</p>
<p>
The height of the rendered block is set to <b>auto</b>,
which is equivalent to setting the <a class="xref" href="C1.C1Preview.RenderObject.Height.html#C1_C1Preview_RenderObject_Height">Height</a> of a <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> to
<a class="xref" href="C1.C1Preview.Unit.Auto.html#C1_C1Preview_Unit_Auto">Auto</a> or <b>"auto"</b>.
</p>
<p>
This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock(RenderObject)</a>.
</p>
</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock</a>(<a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Warnings.html#C1_C1Preview_C1PrintDocument_Warnings">Warnings</a></div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderBlockText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_C1_C1Preview_Style_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText(System.String,C1.C1Preview.Style)">RenderBlockText(string, Style)</h4>
<div class="markdown level1 summary"><p>Renders a block of text into the block flow of the current document,
using the specified <a class="xref" href="C1.C1Preview.C1PrintDocument.Style.html#C1_C1Preview_C1PrintDocument_Style">Style</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderBlockText(string text, Style style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderBlockText(text As String, 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">text</span></td>
      <td><p>The text to render.</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>The style to use (can be <b>null</b>).</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><b>true</b> if no warnings were generated by this call, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_C1_C1Preview_Style__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
See <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a> for details on how the width and height of the
text block are set.
</p>
<p>
This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock(RenderObject)</a>.
</p>
</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_C1_C1Preview_Style__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock</a>(<a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Warnings.html#C1_C1Preview_C1PrintDocument_Warnings">Warnings</a></div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderBlockText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Font_System_Drawing_Color_C1_C1Preview_AlignHorzEnum_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText(System.String,System.Drawing.Font,System.Drawing.Color,C1.C1Preview.AlignHorzEnum)">RenderBlockText(string, Font, Color, AlignHorzEnum)</h4>
<div class="markdown level1 summary"><p>Renders a block of text into the block flow of the current document,
using the specified font, text color and horizontal alignment.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderBlockText(string text, Font font, Color textColor, AlignHorzEnum horzAlign)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderBlockText(text As String, font As Font, textColor As Color, horzAlign As AlignHorzEnum) 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">text</span></td>
      <td><p>The text to render.</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 <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a> to use (can be <b>null</b>).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">textColor</span></td>
      <td><p>The text color to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.AlignHorzEnum.html">AlignHorzEnum</a></td>
      <td><span class="parametername">horzAlign</span></td>
      <td><p>The horizontal text alignment to use.</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><b>true</b> if no warnings were generated by this call, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Font_System_Drawing_Color_C1_C1Preview_AlignHorzEnum__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
See <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a> for details on how the width and height of the
text block are set.
</p>
<p>
This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock(RenderObject)</a>.
</p>
</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Font_System_Drawing_Color_C1_C1Preview_AlignHorzEnum__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock</a>(<a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Warnings.html#C1_C1Preview_C1PrintDocument_Warnings">Warnings</a></div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderBlockText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Font_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText(System.String,System.Drawing.Font)">RenderBlockText(string, Font)</h4>
<div class="markdown level1 summary"><p>Renders a block of text into the block flow of the current document,
using the specified font.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderBlockText(string text, Font font)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderBlockText(text As String, font As Font) 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">text</span></td>
      <td><p>The text to render.</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 <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a> to use (can be <b>null</b>).</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><b>true</b> if no warnings were generated by this call, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Font__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
See <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a> for details on how the width and height of the
text block are set.
</p>
<p>
This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock(RenderObject)</a>.
</p>
</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Font__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock</a>(<a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Warnings.html#C1_C1Preview_C1PrintDocument_Warnings">Warnings</a></div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderBlockText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Font_System_Drawing_Color_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText(System.String,System.Drawing.Font,System.Drawing.Color)">RenderBlockText(string, Font, Color)</h4>
<div class="markdown level1 summary"><p>Renders a block of text into the block flow of the current document,
using the specified font and text color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderBlockText(string text, Font font, Color textColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderBlockText(text As String, font As Font, textColor As Color) 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">text</span></td>
      <td><p>The text to render.</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 <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a> to use (can be <b>null</b>).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">textColor</span></td>
      <td><p>The text color to use.</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><b>true</b> if no warnings were generated by this call, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Font_System_Drawing_Color__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
See <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a> for details on how the width and height of the
text block are set.
</p>
<p>
This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock(RenderObject)</a>.
</p>
</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Font_System_Drawing_Color__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock</a>(<a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Warnings.html#C1_C1Preview_C1PrintDocument_Warnings">Warnings</a></div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderBlockText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Font_C1_C1Preview_AlignHorzEnum_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText(System.String,System.Drawing.Font,C1.C1Preview.AlignHorzEnum)">RenderBlockText(string, Font, AlignHorzEnum)</h4>
<div class="markdown level1 summary"><p>Renders a block of text into the block flow of the current document,
using the specified font and horizontal alignment.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderBlockText(string text, Font font, AlignHorzEnum horzAlign)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderBlockText(text As String, font As Font, horzAlign As AlignHorzEnum) 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">text</span></td>
      <td><p>The text to render.</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 <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a> to use (can be <b>null</b>).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.AlignHorzEnum.html">AlignHorzEnum</a></td>
      <td><span class="parametername">horzAlign</span></td>
      <td><p>The horizontal text alignment to use.</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><b>true</b> if no warnings were generated by this call, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Font_C1_C1Preview_AlignHorzEnum__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
See <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a> for details on how the width and height of the
text block are set.
</p>
<p>
This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock(RenderObject)</a>.
</p>
</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Font_C1_C1Preview_AlignHorzEnum__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock</a>(<a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Warnings.html#C1_C1Preview_C1PrintDocument_Warnings">Warnings</a></div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderBlockText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_C1_C1Preview_AlignHorzEnum_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText(System.String,C1.C1Preview.AlignHorzEnum)">RenderBlockText(string, AlignHorzEnum)</h4>
<div class="markdown level1 summary"><p>Renders a block of text into the block flow of the current document,
using the specified horizontal alignment.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderBlockText(string text, AlignHorzEnum horzAlign)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderBlockText(text As String, horzAlign As AlignHorzEnum) 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">text</span></td>
      <td><p>The text to render.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.AlignHorzEnum.html">AlignHorzEnum</a></td>
      <td><span class="parametername">horzAlign</span></td>
      <td><p>The horizontal text alignment to use.</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><b>true</b> if no warnings were generated by this call, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_C1_C1Preview_AlignHorzEnum__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
See <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a> for details on how the width and height of the
text block are set.
</p>
<p>
This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock(RenderObject)</a>.
</p>
</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_C1_C1Preview_AlignHorzEnum__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock</a>(<a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Warnings.html#C1_C1Preview_C1PrintDocument_Warnings">Warnings</a></div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderBlockText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Color_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText(System.String,System.Drawing.Color)">RenderBlockText(string, Color)</h4>
<div class="markdown level1 summary"><p>Renders a block of text into the block flow of the current document,
using the specified text color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderBlockText(string text, Color textColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderBlockText(text As String, textColor As Color) 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">text</span></td>
      <td><p>The text to render.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">textColor</span></td>
      <td><p>The text color to use.</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><b>true</b> if no warnings were generated by this call, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Color__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
See <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a> for details on how the width and height of the
text block are set.
</p>
<p>
This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock(RenderObject)</a>.
</p>
</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Drawing_Color__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock</a>(<a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Warnings.html#C1_C1Preview_C1PrintDocument_Warnings">Warnings</a></div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderBlockText_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Object_System_Object_C1_C1Preview_Style_" data-uid="C1.C1Preview.C1PrintDocument.RenderBlockText(System.String,System.Object,System.Object,C1.C1Preview.Style)">RenderBlockText(string, object, object, Style)</h4>
<div class="markdown level1 summary"><p>Renders a block of text with the specifed width and height
into the block flow of the current document,
using the specified <a class="xref" href="C1.C1Preview.C1PrintDocument.Style.html#C1_C1Preview_C1PrintDocument_Style">Style</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderBlockText(string text, object width, object height, Style style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderBlockText(text 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">text</span></td>
      <td><p>The text to render.</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>The width of the block to render (if <b>null</b>, parent width is 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>The height of the block to render (if <b>null</b>, auto height is 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>The style to use (can be <b>null</b>).</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><b>true</b> if no warnings were generated by this call, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Object_System_Object_C1_C1Preview_Style__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
See <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a> for details on how the width and height of the
text block are set.
</p>
<p>
This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock(RenderObject)</a>.
</p>
</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_System_Object_System_Object_C1_C1Preview_Style__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlockText.html#C1_C1Preview_C1PrintDocument_RenderBlockText_System_String_">RenderBlockText(string)</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderBlock.html#C1_C1Preview_C1PrintDocument_RenderBlock_C1_C1Preview_RenderObject_">RenderBlock</a>(<a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Warnings.html#C1_C1Preview_C1PrintDocument_Warnings">Warnings</a></div>
</div>
</div>
