Class
ThemeFont

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:

cs-api-definition
public class ThemeFont

Inheritance: objectThemeFont

Constructors

ThemeFont(FontFamily, FontLanguageType)

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

Declaration

cs-api-definition
public ThemeFont(FontFamily fontFamily, FontLanguageType fontLanguageType)

Parameters

fontFamily

FontFamily

The font family.

fontLanguageType

FontLanguageType

The type of font language.

ThemeFont(string, FontLanguageType)

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

Declaration

cs-api-definition
public ThemeFont(string fontName, FontLanguageType fontLanguageType)

Parameters

fontName

string

Name of the font.

fontLanguageType

FontLanguageType

Type of the font language.

Properties

FontFamily

Gets the font family assigned to this theme font entry.

Declaration

cs-api-definition
public FontFamily FontFamily { get; }

Property Value

FontFamily

The font family.

FontLanguageType

Gets the language group this theme font targets.

Declaration

cs-api-definition
public FontLanguageType FontLanguageType { get; }

Property Value

FontLanguageType

The type of font language.

Methods

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Returns a hash code for the current ThemeFont.

Declaration

cs-api-definition
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()