# GrapeCity.Spreadsheet.RichText.Format

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_RichText_Format_" data-uid="GrapeCity.Spreadsheet.RichText.Format*">Format Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_RichText_Format_" data-uid="GrapeCity.Spreadsheet.RichText.Format*"></a>
<h4 id="GrapeCity_Spreadsheet_RichText_Format_System_Int32_System_Int32_GrapeCity_Spreadsheet_Font_" data-uid="GrapeCity.Spreadsheet.RichText.Format(System.Int32,System.Int32,GrapeCity.Spreadsheet.Font)">Format(int, int, Font)</h4>
<div class="markdown level1 summary"><p>Formats the specified text run with 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 void Format(int start, int length, Font font)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Format(start As Integer, length As Integer, font As Font)</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.int32">int</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The start position of the text run.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">length</span></td>
      <td><p>The length of the text run.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Font</span></td>
      <td><span class="parametername">font</span></td>
      <td><p>The font setting of the text run.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_RichText_Format_" data-uid="GrapeCity.Spreadsheet.RichText.Format*"></a>
<h4 id="GrapeCity_Spreadsheet_RichText_Format_GrapeCity_Spreadsheet_Font_" data-uid="GrapeCity.Spreadsheet.RichText.Format(GrapeCity.Spreadsheet.Font)">Format(Font)</h4>
<div class="markdown level1 summary"><p>Formats the whole text with 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 void Format(Font font)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Format(font As Font)</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">Font</span></td>
      <td><span class="parametername">font</span></td>
      <td><p>The font setting of the text run.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
