Class
ThemeFontScheme

Set of major/minor theme fonts, each providing language-specific families resolved during rendering.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Theming

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

cs-api-definition
public class ThemeFontScheme : NamedObjectBase, INamedObject

Inheritance: objectNamedObjectBaseThemeFontScheme

Implements: INamedObject

Inherited Members NamedObjectBase.Name

Constructors

ThemeFontScheme(string, string, string, string, string, string, string)

Initializes a new instance of the ThemeFontScheme class with optional font names per language group for major and minor roles.

Declaration

cs-api-definition
public ThemeFontScheme(string name, string latinMajorFontName = null, string latinMinorFontName = null, string eastAsianMajorFontName = null, string eastAsianMinorFontName = null, string complexScriptMajorFontName = null, string complexScriptMinorFontName = null)

Parameters

name

string

The name.

latinMajorFontName

string

Name of the latin headings font.

latinMinorFontName

string

Name of the latin body font.

eastAsianMajorFontName

string

Name of the east asian headings font.

eastAsianMinorFontName

string

Name of the east asian body font.

complexScriptMajorFontName

string

Name of the complex script headings font.

complexScriptMinorFontName

string

Name of the complex script body font.

Properties

this[ThemeFontType]

Gets the ThemeFonts with the specified font type. Major is typically used for headings; Minor for body text.

Declaration

cs-api-definition
public ThemeFonts this[ThemeFontType fontType] { get; }

Parameters

fontType

ThemeFontType

Property Value

ThemeFonts

The theme fonts.

Methods

Clone()

Create a deep copy of the scheme, duplicating major/minor mappings and language-specific fonts.

Declaration

cs-api-definition
public ThemeFontScheme Clone()

Returns

ThemeFontScheme

The cloned theme font scheme.

Equals(object)

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

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 ThemeFontScheme and all major/minor mappings resolve to equal ThemeFonts for each language group; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Returns a hash code for the current ThemeFontScheme.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A stable hash code computed from the major/minor font mappings, suitable for use in hashing algorithms and data structures.

Overrides object.GetHashCode()