Back to Devexpress

SpreadsheetFontProperties.SchemeStyle Property

officefileapi-devexpress-dot-spreadsheet-dot-spreadsheetfontproperties.md

latest3.0 KB
Original Source

SpreadsheetFontProperties.SchemeStyle Property

Gets or sets the scheme of the font applied to the given characters.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
FontSchemeStyles? SchemeStyle { get; set; }
vb
Property SchemeStyle As FontSchemeStyles?

Property Value

TypeDescription
Nullable<FontSchemeStyles>

A FontSchemeStyles enumeration member. Null for a mixture of font scheme styles.

|

Available values:

NameDescription
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.

See Also

Characters

Font

How to: Apply Rich Formatting to Cell Text

SpreadsheetFontProperties Interface

SpreadsheetFontProperties Members

DevExpress.Spreadsheet Namespace