# C1.WPF.Excel.XLStyle.BackColor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Excel_XLStyle_BackColor_" data-uid="C1.WPF.Excel.XLStyle.BackColor*">BackColor Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Excel_XLStyle_BackColor_" data-uid="C1.WPF.Excel.XLStyle.BackColor*"></a>
<h4 id="C1_WPF_Excel_XLStyle_BackColor" data-uid="C1.WPF.Excel.XLStyle.BackColor">BackColor</h4>
<div class="markdown level1 summary"><p>Gets or sets the background color for this <a class="xref" href="C1.WPF.Excel.XLStyle.html">XLStyle</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Color BackColor { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property BackColor As Color</code></pre>
</div>
<h5 id="C1_WPF_Excel_XLStyle_BackColor_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;Set the &lt;xref href=&quot;C1.WPF.Excel.XLStyle.BackColor&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; property to &lt;b&gt;Color.Transparent&lt;/b&gt; to
</code></pre>
<p>suppress this style element and use the default background color instead (white).</p>
<p>All colors on the <a class="xref" href="C1.WPF.Excel.C1XLBook.html">C1XLBook</a> are mapped to a palette. This
means that if you assign colors to styles, save the book, and then load it back,
you probably won't get exactly the same colors used when the book was created.
You will get a fairly close approximation though.</p>
</div>
</div>
