New to Telerik Document ProcessingStart a free 30-day trial

Theme font entry pairing a font family with a language group for major/minor roles.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Theming

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

C#
public class ThemeFont

Inheritance: objectThemeFont

Constructors

Initializes a new instance of the ThemeFont class with a font family and language group.

C#
public ThemeFont(FontFamily fontFamily, FontLanguageType fontLanguageType)
Parameters:fontFamilyFontFamily

The font family.

fontLanguageTypeFontLanguageType

The type of font language.

Initializes a new instance of the ThemeFont class from a family name and language group.

C#
public ThemeFont(string fontName, FontLanguageType fontLanguageType)
Parameters:fontNamestring

Name of the font.

fontLanguageTypeFontLanguageType

Type of the font language.

Methods

Determines whether the specified object is equal to the current ThemeFont.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current instance.

Returns:

bool

True if the specified object is a ThemeFont and both the font family and language type are equal; otherwise, false.

Overrides: object.Equals(object)

Returns a hash code for the current ThemeFont.

C#
public override int GetHashCode()
Returns:

int

A hash code that combines the font family and language type, suitable for use in hashing algorithms and data structures.

Overrides: object.GetHashCode()

Properties

FontFamily

FontFamily

Gets the font family assigned to this theme font entry.

C#
public FontFamily FontFamily { get; }
Property Value:

The font family.

Gets the language group this theme font targets.

C#
public FontLanguageType FontLanguageType { get; }
Property Value:

The type of font language.