Class ThemableColor
Represents a color which can be used in a theme.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public class ThemableColor : IThemableObject<Color>
Constructors
ThemableColor(Color)
Initializes a new instance of the Themable
Declaration
public ThemableColor(Color color)
Parameters
System. The color. |
ThemableColor(Color, Boolean)
Initializes a new instance of the Themable
Declaration
public ThemableColor(Color color, bool isAutomatic)
Parameters
System. The color. |
System. The is automatic. |
ThemableColor(ThemeColorType, Double)
Initializes a new instance of the Themable
Declaration
public ThemableColor(ThemeColorType themeColorType, double tintAndShade)
Parameters
Theme Theme color type. |
System. The tint and shade. |
ThemableColor(ThemeColorType, Nullable<ColorShadeType>)
Initializes a new instance of the Themable
Declaration
public ThemableColor(ThemeColorType themeColorType, ColorShadeType? colorShadeType = default(ColorShadeType? ))
Parameters
Theme The theme color type. |
System. The color shade type. |
Properties
ColorShadeType
Gets the color shade type.
Declaration
public ColorShadeType? ColorShadeType { get; }
Property Value
System. The color shade type. |
IsAutomatic
Gets the value indicating if the color is automatic. Automatic colors may be modified by a consumer as appropriate.
Declaration
public bool IsAutomatic { get; }
Property Value
System. Value indicating if the color is automatic. |
IsFromTheme
Gets the value indicating if the instance is from a theme.
Declaration
public bool IsFromTheme { get; }
Property Value
System. The value indicating if the instance is from a theme. |
Implements
LocalValue
Gets the local value of the color.
Declaration
public Color LocalValue { get; }
Property Value
System.
|
Implements
ThemeColorType
Gets the theme color type.
Declaration
public ThemeColorType ThemeColorType { get; }
Property Value
Theme The theme color type. |
TintAndShade
Gets the tint and shade.
Declaration
public double? TintAndShade { get; }
Property Value
System. The tint and shade. |
Methods
Equals(Object)
Determines whether the specified System.
Declaration
public override bool Equals(object obj)
Parameters
System. The System. |
Returns
System. True if the specified System. |
Overrides
FromArgb(Byte, Byte, Byte, Byte)
Creates new themable color from Argb.
Declaration
public static ThemableColor FromArgb(byte alfa, byte red, byte green, byte blue)
Parameters
System. The alfa. |
System. The red. |
System. The green. |
System. The blue. |
Returns
FromColor(Color)
Converts System.
Declaration
public static ThemableColor FromColor(Color value)
Parameters
System. The System. |
Returns
GetActualValue(DocumentTheme)
Gets the actual value.
Declaration
public Color GetActualValue(DocumentTheme theme)
Parameters
Document The theme. |
Returns
System. The actual value. |
Implements
GetActualValue(ThemeColorScheme)
Gets the actual value.
Declaration
public Color GetActualValue(ThemeColorScheme colorScheme)
Parameters
Theme The color scheme. |
Returns
System. The actual color. |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System. A hash code for the current System. |
Overrides
ToString()
Returns a System.
Declaration
public override string ToString()
Returns
System. A System. |
Overrides
Operators
Equality(ThemableColor, ThemableColor)
Compares two themable colors.
Declaration
public static bool operator ==(ThemableColor first, ThemableColor second)
Parameters
Themable The first themable color. |
Themable The second themable color. |
Returns
System. If the two themable colors are equal. |
Explicit(Color to ThemableColor)
Explicitly cast color to themable color.
Declaration
public static explicit operator ThemableColor(Color value)
Parameters
System. The color. |
Returns
Themable Themable color. |
Inequality(ThemableColor, ThemableColor)
Compares two themable colors.
Declaration
public static bool operator !=(ThemableColor first, ThemableColor second)
Parameters
Themable The first themable color. |
Themable The second themable color. |
Returns
System. If the two themable colors are equal. |