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

Stores the major and minor font families used by theme-based document formatting.

Definition

Namespace:Telerik.WinForms.Documents.Model.Themes

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class ThemeFonts

Inheritance: objectThemeFonts

Constructors

C#
public ThemeFonts()

Properties

Gets whether the scheme name and both font families match the built-in defaults.

C#
public bool IsDefault { get; }

Gets or sets the font family for the major theme font role.

C#
[XamlSerializable("Cambria")]
public FontFamily Major { get; set; }

Gets or sets the font family for the minor theme font role.

C#
[XamlSerializable("Calibri")]
public FontFamily Minor { get; set; }

Gets or sets the name associated with this font scheme.

C#
[XamlSerializable("Office")]
public string Name { get; set; }

Methods

Gets the font family assigned to a major or minor theme font role.

C#
public bool GetFont(ThemeFontsEnum themeFont, out FontFamily fontFamily)
Parameters:themeFontThemeFontsEnum

The theme font role to retrieve.

fontFamilyFontFamily

When this method returns, the configured font family, or the default font family if the role is not supported.

Returns:

bool

true if the role identifies a configured theme font; otherwise, false.

Converts a theme font name to its corresponding identifier.

C#
public static ThemeFontsEnum? GetThemeFontsEnum(string themeFontName)
Parameters:themeFontNamestring

The name of a ThemeFontsEnum value.

Returns:

ThemeFontsEnum?

The matching identifier, or null if the name is not defined.