# C1.Util.Win.Win32.SendMessageSetCharFormat2

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_Win_Win32_SendMessageSetCharFormat2_" data-uid="C1.Util.Win.Win32.SendMessageSetCharFormat2*">SendMessageSetCharFormat2 Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_Win_Win32_SendMessageSetCharFormat2_" data-uid="C1.Util.Win.Win32.SendMessageSetCharFormat2*"></a>
<h4 id="C1_Util_Win_Win32_SendMessageSetCharFormat2_System_IntPtr_System_UInt32_System_UInt32_C1_Util_Win_Win32_CHARFORMAT2__" data-uid="C1.Util.Win.Win32.SendMessageSetCharFormat2(System.IntPtr,System.UInt32,System.UInt32,C1.Util.Win.Win32.CHARFORMAT2@)">SendMessageSetCharFormat2(nint, uint, uint, ref CHARFORMAT2)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static extern nint SendMessageSetCharFormat2(nint hWnd, uint wMsg, uint wParam, ref Win32.CHARFORMAT2 lParam)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SendMessageSetCharFormat2(hWnd As IntPtr, wMsg As UInteger, wParam As UInteger, ByRef lParam As Win32.CHARFORMAT2) As IntPtr</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">hWnd</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint32">uint</a></td>
      <td><span class="parametername">wMsg</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint32">uint</a></td>
      <td><span class="parametername">wParam</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.Win.Win32.html">Win32</a>.<a class="xref" href="C1.Util.Win.Win32.CHARFORMAT2.html">CHARFORMAT2</a></td>
      <td><span class="parametername">lParam</span></td>
      <td></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.intptr">nint</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
