New to Telerik UI for WinForms? Start a free 30-day trial

Provides properties describing fonts in a theme font scheme.

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Controls

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class ThemeFontSchemeFonts

Inheritance: objectThemeFontSchemeFonts

Constructors

C#
public ThemeFontSchemeFonts()

Methods

Chooses a preview style by preferring Regular, then Bold, then Italic; falls back to Strikeout if none are available.

C#
public static FontStyle GetFontStyle(string fontFamilyString)
Parameters:fontFamilyStringstring

The name used to create the drawing font family.

Returns:

FontStyle

The first available style in the documented order, or Strikeout as the fallback.

Gets the Latin-language font family assigned to the scheme's major (heading) font.

C#
public static FontFamily GetMajorFromScheme(ThemeFontScheme fontScheme)
Parameters:fontSchemeThemeFontScheme

The scheme containing the major font definition.

Returns:

FontFamily

The major font family as a drawing font family.

Gets the Latin-language font family assigned to the scheme's minor (body) font.

C#
public static FontFamily GetMinorFromScheme(ThemeFontScheme fontScheme)
Parameters:fontSchemeThemeFontScheme

The scheme containing the minor font definition.

Returns:

FontFamily

The minor font family as a drawing font family.

Returns the scheme name used to label a theme-font gallery item.

C#
public static string GetNameFromScheme(ThemeFontScheme fontScheme)
Parameters:fontSchemeThemeFontScheme

The theme-font scheme whose name is requested.

Returns:

string

The scheme's name.