8using System.Collections.Generic;
67 public string Name {
get;
set; }
86 this.Colors = GetDefaultColorScheme();
94 internal static Theme GetDefaultTheme()
100 ColorScheme colors = GetDefaultColorScheme();
101 theme.Colors = colors;
109 internal static ColorScheme GetDefaultColorScheme()
111 ColorScheme colors =
new ColorScheme
114 Dark1 =
new SystemColor(SystemColor.Value.WindowText),
115 Light1 =
new SystemColor(SystemColor.Value.Window,
"FFFFFF"),
137 return obj is
Theme theme &&
138 Name == theme.Name &&
139 EqualityComparer<ColorScheme>.Default.Equals(
Colors, theme.Colors);
152 int hashCode = 1172093127;
153 hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(
Name);
154 hashCode = hashCode * -1521134295 + EqualityComparer<ColorScheme>.Default.GetHashCode(
Colors);
Class representing a generic sRGB color (with or without alpha channel).
Class representing a color scheme, used in a theme.
Class representing an Office theme.
override int GetHashCode()
Returns a hash code for this instance.
ColorSchemeElement
Enum to define the sequence index of color scheme element, used in the implementations of Interfaces....
@ FollowedHyperlink
Followed Hyperlink.
ColorScheme Colors
Gets or sets the ColorScheme of the theme.
const string DefaultThemeVersion
Default theme ID, stated in the workbook document.
string Name
Gets or sets the name of the theme.
override bool Equals(object obj)
Returns whether two instances are the same.
bool DefaultTheme
Gets whether the theme is defined as copy or reference to the application default theme.
Theme(string name)
Constructor with parameters. Using this constructor initialized the Colors property with valid defaul...