Skip to main content

XlFont.HeadingsFont() Method

Returns the XlFont object corresponding to the heading font used in the current document theme.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public static XlFont HeadingsFont()

Returns

Type Description
XlFont

An XlFont class instance that represents the theme heading font.

Remarks

The document theme includes a pair of theme fonts: the heading font used for the titles, and the body font that is the default font available for worksheet cells. By default, a workbook uses the Office 2013 theme where the heading font is set to Calibri Light, 11. The XlDocumentTheme enumeration lists the available document themes. To change the theme of a workbook, use the IXlDocument.Theme property.

To apply the theme body font to cell content, call the XlFont.BodyFont method. To specify a custom non-theme font of the specified name, size and/or color, use the XlFont.CustomFont method overloads. For more information on how to specify font settings for an individual cell, refer to the How to: Configure Cell Font Settings article.

See Also