Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

ShapeTextFormat.Font Property

Provides access to font attributes for text displayed in a chart element.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

ShapeTextFont Font { get; }

Property Value

Type Description
ShapeTextFont

A ShapeTextFont object containing font characteristics.

Remarks

Use the Font property to set font attributes for the text displayed in the following chart elements:

  • chart title defined by the ChartTitle object which can be accessed via the ChartObject.Title property;
  • axis title whose display settings are defined by the ChartTitleOptions object accessible via the Axis.Title property;
  • tick-mark labels displayed on the axis (to change font settings for the tick-mark labels, use the Font property of the Axis object);
  • data labels whose options are provided by the DataLabelOptions interface accessible via the ChartView.DataLabels property;
  • trendline label which is defined by the TrendlineLabel object accessible via the Trendline.Label property;
  • display unit label of the value axis (to change font settings for the display unit label, use the Font property of the DisplayUnitOptions object).

Note

Not all ShapeTextFont properties have effect on the visual appearance of chart elements when a document is loaded in the SpreadsheetControl. However, you can set these properties in code, save the document in a supported format and display it in Microsoft Excel.

See Also