# GrapeCity.Documents.Excel.Drawing.ILegendEntry.Font

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Drawing_ILegendEntry_Font_" data-uid="GrapeCity.Documents.Excel.Drawing.ILegendEntry.Font*">Font Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Drawing_ILegendEntry_Font_" data-uid="GrapeCity.Documents.Excel.Drawing.ILegendEntry.Font*"></a>
<h4 id="GrapeCity_Documents_Excel_Drawing_ILegendEntry_Font" data-uid="GrapeCity.Documents.Excel.Drawing.ILegendEntry.Font">Font</h4>
<div class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Documents.Excel.Drawing.IFontFormat.html">IFontFormat</a> object that represents the font settings of the legend entry.</p>
<p>
Use the returned <a class="xref" href="GrapeCity.Documents.Excel.Drawing.IFontFormat.html">IFontFormat</a> object to read or modify the font
applied to the legend entry text.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IFontFormat Font { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">ReadOnly Property Font As IFontFormat</code></pre>
</div>
<h5 id="GrapeCity_Documents_Excel_Drawing_ILegendEntry_Font_examples">Examples</h5>
<pre><code class="lang-csharp">worksheet.Range["A1:B3"].Value = new object[,] {
    {"Name", "Value"},
    {"A", 10},
    {"B", 20}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"]);
ILegendEntry legendEntry = chart.Legend.LegendEntries[0];
IFontFormat font = legendEntry.Font;
font.Bold = true;</code></pre>

</div>
