# C1.WPF.Excel.XLCell.Style

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Excel_XLCell_Style_" data-uid="C1.WPF.Excel.XLCell.Style*">Style Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Excel_XLCell_Style_" data-uid="C1.WPF.Excel.XLCell.Style*"></a>
<h4 id="C1_WPF_Excel_XLCell_Style" data-uid="C1.WPF.Excel.XLCell.Style">Style</h4>
<div class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.Excel.XLStyle.html">XLStyle</a> object associated with the cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLStyle Style { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Style As XLStyle</code></pre>
</div>
<h5 id="C1_WPF_Excel_XLCell_Style_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;The appearance of each cell is defined by one or more XLStyle objects.&lt;/p&gt;
&lt;p&gt;When displaying a cell, Excel combines the row, column, and cell 
</code></pre>
<p>styles and merges the style elements defined in each one in order to
determine how the cell should be displayed.</p>
<p>The precedence of the styles is: (1) cell, (2) row, (3) column,
(4) default style. For example, if a cell style defines the font and
background color, those will be applied regardless of the settings in the
row and column styles. If the row style defines an alignment, that will
be applied regardless of the column style, and so on.</p>
<p>The cell style may be null, in which case the cell is displayed
using the other styles available or the default book style if no others
are available.</p>
</div>
</div>
