# C1.C1Preview.TableCell.Style

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_TableCell_Style_" data-uid="C1.C1Preview.TableCell.Style*">Style Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_TableCell_Style_" data-uid="C1.C1Preview.TableCell.Style*"></a>
<h4 id="C1_C1Preview_TableCell_Style" data-uid="C1.C1Preview.TableCell.Style">Style</h4>
<div class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.Style.html">Style</a> of the current cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Style Style { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property Style As Style</code></pre>
</div>
<h5 id="C1_C1Preview_TableCell_Style_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;
</code></pre>
<p>The value of this property affects both ambient and non-ambient
style attributes of the cell itself and, through object containment,
ambient attributes of the cell's content.</p>

    <p>
For example, because <a class="xref" href="C1.C1Preview.Style.Spacing.html#C1_C1Preview_Style_Spacing">Spacing</a> is ignored
for table cells, the following code does not affect the look of a table:
<pre><code class="lang-csharp">RenderTable rt = new RenderTable();
rt.Cells[1, 2].Text = "My text.";
rt.Cells[1, 2].Style.Spacing.All = "3mm";</code></pre>
while the following code adds 3mm of whie space around the text in the
cell:
<pre><code class="lang-csharp">RenderTable rt = new RenderTable();
rt.Cells[1, 2].Text = "My text.";
rt.Cells[1, 2].CellStyle.Spacing.All = "3mm";</code></pre>
</div>
<h5 id="C1_C1Preview_TableCell_Style_seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.TableCell.CellStyle.html#C1_C1Preview_TableCell_CellStyle">CellStyle</a></div>
</div>
</div>
