# FarPoint.Win.Spread.Dialogs.BuiltInDialogs.FormatComment

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_Dialogs_BuiltInDialogs_FormatComment_" data-uid="FarPoint.Win.Spread.Dialogs.BuiltInDialogs.FormatComment*">FormatComment Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_Dialogs_BuiltInDialogs_FormatComment_" data-uid="FarPoint.Win.Spread.Dialogs.BuiltInDialogs.FormatComment*"></a>
<h4 id="FarPoint_Win_Spread_Dialogs_BuiltInDialogs_FormatComment_GrapeCity_Spreadsheet_IComment_System_Nullable_FarPoint_Win_Spread_FormatCells_FormatCellsTab__" data-uid="FarPoint.Win.Spread.Dialogs.BuiltInDialogs.FormatComment(GrapeCity.Spreadsheet.IComment,System.Nullable{FarPoint.Win.Spread.FormatCells.FormatCellsTab})">FormatComment(IComment, FormatCellsTab?)</h4>
<div class="markdown level1 summary"><p>Gets the Format Comment dialog that allows to customize style settings of the specified range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static FormatCells FormatComment(IComment comment, FormatCells.FormatCellsTab? tab)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FormatComment(comment As IComment, tab As FormatCells.FormatCellsTab?) As FormatCells</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="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.IComment.html">IComment</a></td>
      <td><span class="parametername">comment</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.FormatCells.html">FormatCells</a>.<a class="xref" href="FarPoint.Win.Spread.FormatCells.FormatCellsTab.html">FormatCellsTab</a>?</td>
      <td><span class="parametername">tab</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="FarPoint.Win.Spread.FormatCells.html">FormatCells</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form">Form</a> object represents the Format Comment dialog.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Dialogs_BuiltInDialogs_FormatComment_" data-uid="FarPoint.Win.Spread.Dialogs.BuiltInDialogs.FormatComment*"></a>
<h4 id="FarPoint_Win_Spread_Dialogs_BuiltInDialogs_FormatComment_FarPoint_Win_Spread_CellType_IRichTextEditor_" data-uid="FarPoint.Win.Spread.Dialogs.BuiltInDialogs.FormatComment(FarPoint.Win.Spread.CellType.IRichTextEditor)">FormatComment(IRichTextEditor)</h4>
<div class="markdown level1 summary"><p>Shows the Format Comment dialog that allows to customize font for the comment editor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void FormatComment(IRichTextEditor richTextEditor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub FormatComment(richTextEditor As IRichTextEditor)</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><span class="xref">IRichTextEditor</span></td>
      <td><span class="parametername">richTextEditor</span></td>
      <td><p>A <span class="xref">FarPoint.Win.Spread.CellType.IRichTextEditor</span> object indicates the rich text editor.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
