ClassDocumentTheme
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:
public class DocumentTheme : NamedObjectBase, INamedObject
Inheritance: objectNamedObjectBaseDocumentTheme
Implements:
Inherited Members
Constructors
DocumentTheme(string, ThemeColorScheme, ThemeFontScheme)
Initializes a new instance of the DocumentTheme class.
Declaration
public DocumentTheme(string name, ThemeColorScheme colorScheme, ThemeFontScheme fontScheme)
Parameters
name
The name.
colorScheme
The color scheme.
fontScheme
The font scheme.
Properties
ColorScheme
Gets the color scheme that maps theme color categories to concrete colors used across the document.
Declaration
public ThemeColorScheme ColorScheme { get; }
Property Value
The color scheme.
FontScheme
Gets the font scheme that provides major/minor fonts for different language groups.
Declaration
public ThemeFontScheme FontScheme { get; }
Property Value
The font scheme.
Methods
Clone()
Creates a deep copy of the theme, duplicating the color and font schemes.
Declaration
public DocumentTheme Clone()
Returns
The cloned document theme.
Equals(object)
Determines whether the specified object is equal to this theme.
Declaration
public override bool Equals(object obj)
Parameters
obj
The object to compare with the current theme.
Returns
True if the specified object is a DocumentTheme with the same name, color scheme, and font scheme; otherwise, false.
Overrides
GetHashCode()
Returns a hash code for this theme based on its name, color scheme, and font scheme.
Declaration
public override int GetHashCode()
Returns
A hash code for the current theme.
Overrides