# GrapeCity.Wpf.SpreadSheet.FunctionVisualizer.ApplyFormat

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_FunctionVisualizer_ApplyFormat_" data-uid="GrapeCity.Wpf.SpreadSheet.FunctionVisualizer.ApplyFormat*">ApplyFormat Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_FunctionVisualizer_ApplyFormat_" data-uid="GrapeCity.Wpf.SpreadSheet.FunctionVisualizer.ApplyFormat*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_FunctionVisualizer_ApplyFormat_System_Object_GrapeCity_Spreadsheet_StyleFormat__" data-uid="GrapeCity.Wpf.SpreadSheet.FunctionVisualizer.ApplyFormat(System.Object,GrapeCity.Spreadsheet.StyleFormat@)">ApplyFormat(object, ref StyleFormat)</h4>
<div class="markdown level1 summary"><p>Applies the format to the cell style format.</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 ApplyFormat(object cellValue, ref StyleFormat styleFormat)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub ApplyFormat(cellValue As Object, ByRef styleFormat As StyleFormat)</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.object">object</a></td>
      <td><span class="parametername">cellValue</span></td>
      <td><p>The cell value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.StyleFormat.html">StyleFormat</a></td>
      <td><span class="parametername">styleFormat</span></td>
      <td><p>A <a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.StyleFormat.html">StyleFormat</a> value indicates the style formatting result.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.CalcEngine.IFunctionVisualizer.ApplyFormat.html#GrapeCity_CalcEngine_IFunctionVisualizer_ApplyFormat_System_Object_GrapeCity_Spreadsheet_StyleFormat__">IFunctionVisualizer.ApplyFormat(object, ref StyleFormat)</a></div>
<h5 id="GrapeCity_Wpf_SpreadSheet_FunctionVisualizer_ApplyFormat_System_Object_GrapeCity_Spreadsheet_StyleFormat___remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This function is invoked only if <a class="xref" href="GrapeCity.Wpf.SpreadSheet.FunctionVisualizer.IsVisual.html#GrapeCity_Wpf_SpreadSheet_FunctionVisualizer_IsVisual">IsVisual</a> property returns <code>false</code>.</p>
</div>
</div>
