Class DocumentTheme
Container for a document’s theme, combining a color scheme and font scheme used to resolve themable values.
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Theming
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public class DocumentTheme : NamedObjectBase, INamedObject
Constructors
DocumentTheme(String, ThemeColorScheme, ThemeFontScheme)
Initializes a new instance of the DocumentTheme class.
Declaration
public DocumentTheme(string name, ThemeColorScheme colorScheme, ThemeFontScheme fontScheme)
Parameters
|
System.String
name
The name. |
|
ThemeColorScheme
colorScheme
The color scheme. |
|
ThemeFontScheme
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
|
ThemeColorScheme
The color scheme. |
FontScheme
Gets the font scheme that provides major/minor fonts for different language groups.
Declaration
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
public DocumentTheme Clone()
Returns
|
DocumentTheme
The cloned document theme. |
Equals(Object)
Determines whether the specified object is equal to this theme.
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
The object to compare with the current theme. |
Returns
|
System.Boolean
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
|
System.Int32
A hash code for the current theme. |