SpreadsheetFontProperties.SchemeStyle Property
Gets or sets the scheme of the font applied to the given characters.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
Nullable<FontSchemeStyles> | A FontSchemeStyles enumeration member. Null for a mixture of font scheme styles. |
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
Use the SpreadsheetFontProperties object’s properties to view or change font characteristics for a portion of cell text specified by the RichTextString.Characters method. The SchemeStyle property allows you to use a major or minor font of the current theme specified in the document. Major fonts are usually used for titles and headings, and minor fonts are used for the body text of a worksheet cell. When a document theme is changed, 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 FontSchemeStyles.None.
For an example on how to apply formatting to the specified characters within the cell text, refer to the How to: Apply Rich Formatting to Cell Text article.