# GrapeCity.Spreadsheet.FormatResult.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_FormatResult_Create_" data-uid="GrapeCity.Spreadsheet.FormatResult.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_FormatResult_Create_" data-uid="GrapeCity.Spreadsheet.FormatResult.Create*"></a>
<h4 id="GrapeCity_Spreadsheet_FormatResult_Create_GrapeCity_Spreadsheet_RichText_" data-uid="GrapeCity.Spreadsheet.FormatResult.Create(GrapeCity.Spreadsheet.RichText)">Create(RichText)</h4>
<div class="markdown level1 summary"><p>Creates a formatted result.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static FormatResult Create(RichText richText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(richText As RichText) As FormatResult</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.RichText.html">RichText</a></td>
      <td><span class="parametername">richText</span></td>
      <td><p>The text with style setting(s).</p>
</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="GrapeCity.Spreadsheet.FormatResult.html">FormatResult</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.FormatResult.html">FormatResult</a> value represents the formatted result.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_FormatResult_Create_" data-uid="GrapeCity.Spreadsheet.FormatResult.Create*"></a>
<h4 id="GrapeCity_Spreadsheet_FormatResult_Create_System_String_GrapeCity_Spreadsheet_DisplayValueStyle_GrapeCity_Spreadsheet_FormatColorEnum_" data-uid="GrapeCity.Spreadsheet.FormatResult.Create(System.String,GrapeCity.Spreadsheet.DisplayValueStyle,GrapeCity.Spreadsheet.FormatColorEnum)">Create(string, DisplayValueStyle, FormatColorEnum)</h4>
<div class="markdown level1 summary"><p>Creates a formatted result.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static FormatResult Create(string text, DisplayValueStyle displayStyle = DisplayValueStyle.Text, FormatColorEnum color = FormatColorEnum.None)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(text As String, Optional displayStyle As DisplayValueStyle = DisplayValueStyle.Text, Optional color As FormatColorEnum = FormatColorEnum.None) As FormatResult</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.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The formatted text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.DisplayValueStyle.html">DisplayValueStyle</a></td>
      <td><span class="parametername">displayStyle</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.DisplayValueStyle.html">DisplayValueStyle</a> value indicates how's text displayed.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.FormatColorEnum.html">FormatColorEnum</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>The color of the formatted text.</p>
</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="GrapeCity.Spreadsheet.FormatResult.html">FormatResult</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.FormatResult.html">FormatResult</a> value represents the formatted result.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_FormatResult_Create_" data-uid="GrapeCity.Spreadsheet.FormatResult.Create*"></a>
<h4 id="GrapeCity_Spreadsheet_FormatResult_Create_System_String_System_Int32_System_Char_GrapeCity_Spreadsheet_DisplayValueStyle_GrapeCity_Spreadsheet_FormatColorEnum_" data-uid="GrapeCity.Spreadsheet.FormatResult.Create(System.String,System.Int32,System.Char,GrapeCity.Spreadsheet.DisplayValueStyle,GrapeCity.Spreadsheet.FormatColorEnum)">Create(string, int, char, DisplayValueStyle, FormatColorEnum)</h4>
<div class="markdown level1 summary"><p>Creates a formatted result with repeat character.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static FormatResult Create(string text, int repeatCharIndex, char repeatChar, DisplayValueStyle displayStyle = DisplayValueStyle.Text, FormatColorEnum color = FormatColorEnum.None)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(text As String, repeatCharIndex As Integer, repeatChar As Char, Optional displayStyle As DisplayValueStyle = DisplayValueStyle.Text, Optional color As FormatColorEnum = FormatColorEnum.None) As FormatResult</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.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The formatted text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">repeatCharIndex</span></td>
      <td><p>The position of the repeat character in the formatted <code class="paramref">text</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.char">char</a></td>
      <td><span class="parametername">repeatChar</span></td>
      <td><p>The repeat character to fulfil display space.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.DisplayValueStyle.html">DisplayValueStyle</a></td>
      <td><span class="parametername">displayStyle</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.DisplayValueStyle.html">DisplayValueStyle</a> value indicates how's text displayed.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.FormatColorEnum.html">FormatColorEnum</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>The color of the formatted text.</p>
</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="GrapeCity.Spreadsheet.FormatResult.html">FormatResult</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.FormatResult.html">FormatResult</a> value represents the formatted result.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
