ThemeFonts
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:
public class ThemeFonts
Inheritance: objectThemeFonts
Constructors
public ThemeFonts()
Properties
Gets whether the scheme name and both font families match the built-in defaults.
public bool IsDefault { get; }
Gets or sets the font family for the major theme font role.
[XamlSerializable("Cambria")]
public FontFamily Major { get; set; }
Gets or sets the font family for the minor theme font role.
[XamlSerializable("Calibri")]
public FontFamily Minor { get; set; }
Methods
Gets the font family assigned to a major or minor theme font role.
public bool GetFont(ThemeFontsEnum themeFont, out FontFamily fontFamily)
The theme font role to retrieve.
fontFamilyFontFamilyWhen this method returns, the configured font family, or the default font family if the role is not supported.
Returns:true if the role identifies a configured theme font; otherwise, false.
Converts a theme font name to its corresponding identifier.
public static ThemeFontsEnum? GetThemeFontsEnum(string themeFontName)
The name of a ThemeFontsEnum value.
Returns:The matching identifier, or null if the name is not defined.