# C1.WPF.Excel.C1XLBook.DefaultFont

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Excel_C1XLBook_DefaultFont_" data-uid="C1.WPF.Excel.C1XLBook.DefaultFont*">DefaultFont Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Excel_C1XLBook_DefaultFont_" data-uid="C1.WPF.Excel.C1XLBook.DefaultFont*"></a>
<h4 id="C1_WPF_Excel_C1XLBook_DefaultFont" data-uid="C1.WPF.Excel.C1XLBook.DefaultFont">DefaultFont</h4>
<div class="markdown level1 summary"><p>Gets or sets the default font object for the <a class="xref" href="C1.WPF.Excel.C1XLBook.html">C1XLBook</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLFont DefaultFont { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property DefaultFont As XLFont</code></pre>
</div>
<h5 id="C1_WPF_Excel_C1XLBook_DefaultFont_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;You can assign any font to any cell using &lt;xref href=&quot;C1.WPF.Excel.XLStyle&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; objects. Cells
</code></pre>
<p>that have no associated custom styles or have styles that do not define
a custom font are displayed using the book's default font.</p>
<p>The <a class="xref" href="C1.WPF.Excel.C1XLBook.DefaultFont.html#C1_WPF_Excel_C1XLBook_DefaultFont">DefaultFont</a> property is initially set to 10 pt Arial.</p>
</div>
</div>
