Legend.Font Property
Provides access to font settings for the legend entries.
Namespace: DevExpress.Spreadsheet.Charts
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
ShapeTextFont | A ShapeTextFont object containing font settings. |
Remarks
The Font
property specifies font settings for all legend entries. To change settings for a specific entry, use the Legend.CustomEntries property to add an entry to be modified at a specific index and change its LegendEntry.Font settings.
Note
The SpreadsheetControl does not display an individual font for each legend entry specified by the LegendEntry.Font
property. The font specified by the Legend.Font
property is applied to all entries. However, the LegendEntry.Font
property can be retrieved in code, exported in supported formats, and visualized in Microsoft Excel.
If the Legend.Font
property is not specified, but one or multiple of the legend entry has the Font
property specified, the font is retrieved from the first entry in the collection.