ThemableFontFamily
Font family that can be taken from a theme (major/minor) or set locally and resolved at runtime.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Core.dll
Syntax:
public class ThemableFontFamily : IThemableObject<FontFamily>
Inheritance: objectThemableFontFamily
Implements:
Constructors
Initializes a new instance of the ThemableFontFamily class with a concrete font family.
public ThemableFontFamily(FontFamily fontFamily)
The font family.
Initializes a new instance of the ThemableFontFamily class from a family name.
Initializes a new instance that references a theme font role (major/minor).
public ThemableFontFamily(ThemeFontType themeFontType)
Type of the theme font.
Methods
Convert a FontFamily to a ThemableFontFamily.
public static ThemableFontFamily FromFontFamily(FontFamily value)
The FontFamily.
Returns:The ThemableFontFamily.
GetActualValue(DocumentTheme)
FontFamily
Resolve the effective font family using the provided theme.
public FontFamily GetActualValue(DocumentTheme theme)
The theme.
Returns:FontFamily
The actual value.
Implements:
Operators
Explicitly cast a concrete font family to a themable font family.
public static explicit operator ThemableFontFamily(FontFamily value)
The font family.
Returns:Themable font family.
Compares two themable font families.
public static bool operator !=(ThemableFontFamily first, ThemableFontFamily second)
The first themable font family.
secondThemableFontFamilyThe second themable font family.
Returns:If the two themable font families are not equal.
Compares two themable font families.
public static bool operator ==(ThemableFontFamily first, ThemableFontFamily second)
The first themable font family.
secondThemableFontFamilyThe second themable font family.
Returns:If the two themable font families are equal.
Properties
Gets whether the font family is sourced from the theme rather than locally specified.
public bool IsFromTheme { get; }
The value indicating if the instance is from a theme.
Implements:
LocalValue
FontFamily
Gets the locally assigned font family when not resolved from the theme.
public FontFamily LocalValue { get; }
The local value.
Implements:
Gets the theme font role (major/minor) when the value originates from the theme.
public ThemeFontType ThemeFontType { get; }
The theme font type.