New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class DocumentTheme : NamedObjectBase, INamedObject

Inheritance: objectNamedObjectBaseDocumentTheme

Implements: INamedObject

Inherited Members NamedObjectBase.Name

Constructors

Initializes a new instance of the DocumentTheme class.

C#
public DocumentTheme(string name, ThemeColorScheme colorScheme, ThemeFontScheme fontScheme)
Parameters:namestring

The name.

colorSchemeThemeColorScheme

The color scheme.

fontSchemeThemeFontScheme

The font scheme.

Methods

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

C#
public DocumentTheme Clone()
Returns:

DocumentTheme

The cloned document theme.

Determines whether the specified object is equal to this theme.

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

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)

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

C#
public override int GetHashCode()
Returns:

int

A hash code for the current theme.

Overrides: object.GetHashCode()

Properties

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

C#
public ThemeColorScheme ColorScheme { get; }
Property Value:

The color scheme.

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

C#
public ThemeFontScheme FontScheme { get; }
Property Value:

The font scheme.