Back to Devexpress

SpreadsheetFont.SchemeStyle Property

officefileapi-devexpress-dot-spreadsheet-dot-spreadsheetfont-b9760410.md

latest4.8 KB
Original Source

SpreadsheetFont.SchemeStyle Property

Gets or sets the font scheme for the current font.

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
FontSchemeStyles

One of the FontSchemeStyles enumeration members.

|

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

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 user-defined font, the SchemeStyle property is FontSchemeStyles.None.

To specify all other font characteristics, use the SpreadsheetFont object properties such as SpreadsheetFont.Color, SpreadsheetFont.Size, SpreadsheetFont.Bold, SpreadsheetFont.Italic, etc. Access this object from the Formatting.Font property.

For examples on how to specify the format for an individual cell and cell range or modify a style, refer to the How to: Format a Cell or Range of Cells or How to: Create or Modify a Style document, respectively.

See Also

Name

Size

Color

Script

Strikethrough

UnderlineType

WinForms Spreadsheet Control Examples

SpreadsheetFont Interface

SpreadsheetFont Members

DevExpress.Spreadsheet Namespace