# CSJ2K.j2k.util.MsgPrinter.print

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_util_MsgPrinter_print_" data-uid="CSJ2K.j2k.util.MsgPrinter.print*">print Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_util_MsgPrinter_print_" data-uid="CSJ2K.j2k.util.MsgPrinter.print*"></a>
<h4 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)">print(StreamWriter, int, int, string)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void print(StreamWriter out_Renamed, int flind, int ind, string msg)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub print(out_Renamed As StreamWriter, flind As Integer, ind As Integer, msg As String)</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.io.streamwriter">StreamWriter</a></td>
      <td><span class="parametername">out_Renamed</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">flind</span></td>
      <td><p>The indentation for the first line.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">ind</span></td>
      <td><p>The indentation for the other lines.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">msg</span></td>
      <td><p>The message to format and print.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
