ThemeColorScheme
Defines the mapping from theme color categories to concrete colors and exposes shade/tint helpers.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Theming
Assembly:Telerik.Windows.Documents.Core.dll
Syntax:
[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
public class ThemeColorScheme : NamedObjectBase, INamedObject, IEnumerable<ThemeColor>, IEnumerable
Inheritance: objectNamedObjectBaseThemeColorScheme
Implements:
Inherited Members
Constructors
Initializes a new instance of the ThemeColorScheme class.
public ThemeColorScheme(string name, Color background1, Color text1, Color background2, Color text2, Color accent1, Color accent2, Color accent3, Color accent4, Color accent5, Color accent6, Color hyperlink, Color followedHyperlink)
The name.
background1ColorThe first background.
text1ColorThe first text color.
background2ColorThe second background.
text2ColorThe second text color.
accent1ColorThe first accent.
accent2ColorThe second accent.
accent3ColorThe third accent.
accent4ColorThe fourth accent.
accent5ColorThe fifth accent.
accent6ColorThe sixth accent.
hyperlinkColorThe hyperlink color.
followedHyperlinkColorThe followed hyperlink color.
Methods
Create a deep copy of the color scheme, duplicating all color mappings.
Determines whether the specified object is equal to this color scheme.
public override bool Equals(object obj)
The object to compare with the current color scheme.
Returns:True if the specified object is a ThemeColorScheme whose mapped theme colors match by category; otherwise, false.
Overrides:
Returns an enumerator that iterates through the theme colors in this scheme.
public IEnumerator<ThemeColor> GetEnumerator()
An enumerator for the theme colors.
Implements:
Returns a hash code for this color scheme based on its color mappings.
public override int GetHashCode()
A hash code for the current color scheme.
Overrides:
Compute the tint/shade adjustment for a given theme color and shade step.
public double GetTintAndShade(ThemeColorType themeColorType, ColorShadeType colorShadeType)
Type of the theme color.
colorShadeTypeColorShadeTypeType of the color shade.
Returns:The tint and shade value.
Properties
Gets the ThemeColor with the specified color type. Returns the theme color mapped for that category.
public ThemeColor this[ThemeColorType colorType] { get; }
The theme color.