New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class ThemeFontScheme : NamedObjectBase, INamedObject

Inheritance: objectNamedObjectBaseThemeFontScheme

Implements: INamedObject

Inherited Members NamedObjectBase.Name

Constructors

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

C#
public ThemeFontScheme(string name, string latinMajorFontName = null, string latinMinorFontName = null, string eastAsianMajorFontName = null, string eastAsianMinorFontName = null, string complexScriptMajorFontName = null, string complexScriptMinorFontName = null)
Parameters:namestring

The name.

latinMajorFontNamestring

Name of the latin headings font.

latinMinorFontNamestring

Name of the latin body font.

eastAsianMajorFontNamestring

Name of the east asian headings font.

eastAsianMinorFontNamestring

Name of the east asian body font.

complexScriptMajorFontNamestring

Name of the complex script headings font.

complexScriptMinorFontNamestring

Name of the complex script body font.

Methods

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

C#
public ThemeFontScheme Clone()
Returns:

ThemeFontScheme

The cloned theme font scheme.

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

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

Overrides: object.Equals(object)

Returns a hash code for the current ThemeFontScheme.

C#
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()

Properties

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

C#
public ThemeFonts this[ThemeFontType fontType] { get; }
Parameters:fontTypeThemeFontTypeProperty Value:

The theme fonts.