# CSJ2K.j2k.util.MsgPrinter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_util_MsgPrinter" data-uid="CSJ2K.j2k.util.MsgPrinter" class="text-break">MsgPrinter Class
</h1>
  <div class="markdown level0 summary"><p>This utility class formats messages to the specified line width, by
inserting line-breaks between words, and printing the resulting
lines.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">MsgPrinter</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.util.html">CSJ2K.j2k.util</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_util_MsgPrinter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class MsgPrinter</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class MsgPrinter</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_util_MsgPrinter__ctor_System_Int32_" data-uid="CSJ2K.j2k.util.MsgPrinter.#ctor(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.util.MsgPrinter.-ctor.html#CSJ2K_j2k_util_MsgPrinter__ctor_System_Int32_">MsgPrinter(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new message printer with the specified line width and
with the default locale.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_util_MsgPrinter_lw" data-uid="CSJ2K.j2k.util.MsgPrinter.lw">
          <a class="xref" href="CSJ2K.j2k.util.MsgPrinter.lw.html">lw</a>
        </td>
        <td class="markdown level1 summary"><p>The line width to use</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_util_MsgPrinter_LineWidth" data-uid="CSJ2K.j2k.util.MsgPrinter.LineWidth">
          <a class="xref" href="CSJ2K.j2k.util.MsgPrinter.LineWidth.html#CSJ2K_j2k_util_MsgPrinter_LineWidth">LineWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the line width that is used for formatting.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_util_MsgPrinter_print_System_IO_StreamWriter_System_Int32_System_Int32_System_String_" data-uid="CSJ2K.j2k.util.MsgPrinter.print(System.IO.StreamWriter,System.Int32,System.Int32,System.String)">
          <a class="xref" href="CSJ2K.j2k.util.MsgPrinter.print.html#CSJ2K_j2k_util_MsgPrinter_print_System_IO_StreamWriter_System_Int32_System_Int32_System_String_">print(StreamWriter, int, int, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Formats the message to print in the current line width, by
breaking the message into lines between words. The number of
spaces to indent the first line is specified by 'flind' and the
number of spaces to indent each of the following lines is
specified by 'ind'. Newlines in 'msg' are respected. A newline is
always printed at the end.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
