Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns the font for text in the chart region.
(ChartRegions obtained from Chart.PlotArea don't support fonts.)

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public Font Font{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property Font() As Font</p>Font
Remarks

If the ChartRegion object represents the chart area, the font returned will be the font for the entire chart. Setting a property on this font will cause all other fonts in the chart to have the same font as the chart area.

If the ChartRegion represents a legend, the font returned will be the font for all items in the legend. Setting a property on this font will also set this property for all other fonts inside the legend.

If the ChartRegion represents a series label, the font returned will be the font for all data labels in the series. Setting a property on this font will also set this property for all data point labels of this series.

There is no font for the plot area.