-
Notifications
You must be signed in to change notification settings - Fork 14
Font
Font
This class contains methods and properties related to the font.
- none
The following sections contain a detailed description of the methods and properties.
With this property you can specify the font color. By default, the font color is black.
You can specify the background color in four ways:
- rgba-code: rgba(77,22,66,0.5)
- rgb-code: rgb(128,255,73)
- hex-code: #FF77A1
- color name: green
{empty}, which leads to black
myChart.Chart.DataLabels.Font.Color = "red"
With this property you can specify the font family. By default, the font family is "Arial".
{empty}, which leads to "Arial"
myChart.DataLabels.Font.Family = "Calibri"
With this property you can specify the font size. By default, the font size is 12.
{empty}, which leads to 12
myChart.DataLabels.Font.Size = 14
With this property you can specify the font style. By default, it is 'fsUndefined'.
- fsUndefined
- fsNormal
- fsItalic
- fsOblique
fsUndefined, which leads to fsNormal
myChart.DataLabels.Font.Style = fsItalic
With this property you can specify the font weight (boldness). By default, it is 'fwUndefined'.
- fwUndefined
- fwThin
- fwExtraLight
- fwLight
- fwNormal
- fwMedium
- fwSemiBold
- fwBold
- fwExtraBold
- fwBlack
fwUndefined, which leads to fwNormal
myChart.DataLabels.Font.Weight = fwBold