# FarPoint.Web.Spread.Renderer.BaseRenderer.ApplyStyleTo

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_Renderer_BaseRenderer_ApplyStyleTo_" data-uid="FarPoint.Web.Spread.Renderer.BaseRenderer.ApplyStyleTo*">ApplyStyleTo Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_Renderer_BaseRenderer_ApplyStyleTo_" data-uid="FarPoint.Web.Spread.Renderer.BaseRenderer.ApplyStyleTo*"></a>
<h4 id="FarPoint_Web_Spread_Renderer_BaseRenderer_ApplyStyleTo_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Boolean_" data-uid="FarPoint.Web.Spread.Renderer.BaseRenderer.ApplyStyleTo(System.Web.UI.WebControls.TableCell,FarPoint.Web.Spread.Appearance,FarPoint.Web.Spread.Inset,System.Boolean)">ApplyStyleTo(TableCell, Appearance, Inset, bool)</h4>
<div class="markdown level1 summary"><p>Applies an appearance to the TableCell object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected void ApplyStyleTo(TableCell tc, Appearance style, Inset margin, bool upperLevel)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub ApplyStyleTo(tc As TableCell, style As Appearance, margin As Inset, upperLevel As Boolean)</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.web.ui.webcontrols.tablecell">TableCell</a></td>
      <td><span class="parametername">tc</span></td>
      <td><p>Table cell of the renderer control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.Appearance.html">Appearance</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Appearance settings for the renderer control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.Inset.html">Inset</a></td>
      <td><span class="parametername">margin</span></td>
      <td><p>Margin settings for the renderer control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">upperLevel</span></td>
      <td><p>Whether to display in an up-level browser</p>
</td>
    </tr>
  </tbody>
</table>
</div>
