Skip to main content

XlFontBase.SchemeStyle Property

Gets or sets the font scheme for the current font.

Namespace: DevExpress.Export.Xl

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

Declaration

public XlFontSchemeStyles SchemeStyle { get; set; }

Property Value

Type Description
XlFontSchemeStyles

One of the XlFontSchemeStyles enumeration members.

Available values:

Name Description
None

Specifies that the given font is not a theme font.

Minor

Specifies the minor font of the document theme.

Major

Specifies the major font of the document theme.

Remarks

The SchemeStyle property allows you to use a major or minor font of the current document theme. Major fonts are usually used for titles and headings, and minor fonts are used for the body text of a worksheet cell. When you change a document theme using the IXlDocument.Theme property, the theme fonts are updated to use the new major and minor fonts specified for the selected theme. For a custom font, the SchemeStyle property is XlFontSchemeStyles.None.

You can also use the XlFont.BodyFont or XlFont.HeadingsFont method to apply the body or heading font to cell content, respectively.

To specify other font characteristics, use the XlFont object properties such as 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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SchemeStyle property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also