XlFont.FontFamily Property
Gets or sets the font family of the font applied to cell content.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v24.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
XlFontFamily | An XlFontFamily object that specifies the font family. |
Available values:
Name | Description |
---|---|
Auto | Specifies that information about a font family of the given font does not exist. In this case, the default font family is used. |
Roman | Specifies a proportional font with serifs. |
Swiss | Specifies a proportional font without serifs. |
Modern | Specifies a monospace font with or without serifs. |
Script | Specifies a script font that is designed to mimic the appearance of handwriting. |
Decorative | Specifies a novelty font. |
Remarks
A font family is a set of fonts that have common stroke width and serif characteristics. The XlFontFamily enumeration lists the available font families.
To specify all the required font characteristics, use the XlFont object properties such as XlFontBase.Name, XlFontBase.Size, XlFontBase.Script, XlFontBase.Underline, XlFont.Color etc. For an example on how to apply font settings to an individual cell, refer to the How to: Configure Cell Font Settings article.