Class
DocumentTheme

Container for a document’s theme, combining a color scheme and font scheme used to resolve themable values.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Theming

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

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

Inheritance: objectNamedObjectBaseDocumentTheme

Implements: INamedObject

Inherited Members NamedObjectBase.Name

Constructors

DocumentTheme(string, ThemeColorScheme, ThemeFontScheme)

Initializes a new instance of the DocumentTheme class.

Declaration

cs-api-definition
public DocumentTheme(string name, ThemeColorScheme colorScheme, ThemeFontScheme fontScheme)

Parameters

name

string

The name.

colorScheme

ThemeColorScheme

The color scheme.

fontScheme

ThemeFontScheme

The font scheme.

Properties

ColorScheme

Gets the color scheme that maps theme color categories to concrete colors used across the document.

Declaration

cs-api-definition
public ThemeColorScheme ColorScheme { get; }

Property Value

ThemeColorScheme

The color scheme.

FontScheme

Gets the font scheme that provides major/minor fonts for different language groups.

Declaration

cs-api-definition
public ThemeFontScheme FontScheme { get; }

Property Value

ThemeFontScheme

The font scheme.

Methods

Clone()

Creates a deep copy of the theme, duplicating the color and font schemes.

Declaration

cs-api-definition
public DocumentTheme Clone()

Returns

DocumentTheme

The cloned document theme.

Equals(object)

Determines whether the specified object is equal to this theme.

Declaration

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

Parameters

obj

object

The object to compare with the current theme.

Returns

bool

True if the specified object is a DocumentTheme with the same name, color scheme, and font scheme; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Returns a hash code for this theme based on its name, color scheme, and font scheme.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current theme.

Overrides object.GetHashCode()