Class SpreadThemableColor
Represents a color which can be used in a theme.
Inheritance
Inherited Members
Namespace: Telerik.Documents.SpreadsheetStreaming
Assembly: Telerik.Documents.SpreadsheetStreaming.dll
Syntax
public class SpreadThemableColor
Constructors
SpreadThemableColor(SpreadColor)
Initializes a new instance of the Spread
Declaration
public SpreadThemableColor(SpreadColor color)
Parameters
Spread The color. |
SpreadThemableColor(SpreadColor, Boolean)
Initializes a new instance of the Spread
Declaration
public SpreadThemableColor(SpreadColor color, bool isAutomatic)
Parameters
Spread The color. |
System. The is automatic. |
SpreadThemableColor(SpreadThemeColorType)
Initializes a new instance of the Spread
Declaration
public SpreadThemableColor(SpreadThemeColorType themeColorType)
Parameters
Spread Type of the theme color. |
SpreadThemableColor(SpreadThemeColorType, Double)
Initializes a new instance of the Spread
Declaration
public SpreadThemableColor(SpreadThemeColorType themeColorType, double tintAndShade)
Parameters
Spread Type of the theme color. |
System. The tint and shade. |
SpreadThemableColor(SpreadThemeColorType, Nullable<SpreadColorShadeType>)
Initializes a new instance of the Spread
Declaration
public SpreadThemableColor(SpreadThemeColorType themeColorType, SpreadColorShadeType? colorShadeType)
Parameters
Spread Type of the theme color. |
System. Type of the predefined tint and shade proportion for the themable color. |
Properties
ColorShadeType
Gets the type of the color shade.
Declaration
public SpreadColorShadeType? ColorShadeType { get; }
Property Value
System. The type of the color shade. |
IsAutomatic
Gets the value indicating if the color is automatic. Automatic colors may be interpreted by a consumer as appropriate.
Declaration
public bool IsAutomatic { get; }
Property Value
System. Value indicating if the color is automatic. |
IsFromTheme
Gets a value indicating if the color comes from a theme.
Declaration
public bool IsFromTheme { get; }
Property Value
System. The value indicating if the color comes from a theme. |
LocalValue
Gets the local value of the color.
Declaration
public SpreadColor LocalValue { get; }
Property Value
Spread The local value of the color. |
ThemeColorType
Gets the type of the theme color.
Declaration
public SpreadThemeColorType ThemeColorType { get; }
Property Value
Spread The type of the theme color. |
TintAndShade
Gets the tint and shade proportion value. This value is applied over the theme color coming from the Spread
Declaration
public double? TintAndShade { get; }
Property Value
System. The tint and shade value. |
Methods
Equals(Object)
Determines whether the specified System.
Declaration
public override bool Equals(object obj)
Parameters
System. The System. |
Returns
System. Returns true if the specified System. |
Overrides
FromRgb(Byte, Byte, Byte)
Creates a new instance of the Spread
Declaration
public static SpreadThemableColor FromRgb(byte red, byte green, byte blue)
Parameters
System. The red component. |
System. The green component. |
System. The blue component. |
Returns
Spread Instance of the Spread |
FromSpreadColor(SpreadColor)
Converts Spread
Declaration
public static SpreadThemableColor FromSpreadColor(SpreadColor value)
Parameters
Spread The Spread |
Returns
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 string that represents the themable color.
Declaration
public override string ToString()
Returns
System. A string that represents the themable color. |
Overrides
Operators
Equality(SpreadThemableColor, SpreadThemableColor)
Determines whether the specified themable colors are equal.
Declaration
public static bool operator ==(SpreadThemableColor first, SpreadThemableColor second)
Parameters
Spread
|
Spread
|
Returns
System. True if the themable colors are equal; otherwise, false. |
Explicit(SpreadColor to SpreadThemableColor)
Explicitly cast color to themable color.
Declaration
public static explicit operator SpreadThemableColor(SpreadColor value)
Parameters
Spread The color. |
Returns
Spread Themable color. |
Inequality(SpreadThemableColor, SpreadThemableColor)
Determines whether the specified themable colors are different.
Declaration
public static bool operator !=(SpreadThemableColor first, SpreadThemableColor second)
Parameters
Spread
|
Spread
|
Returns
System. True if the themable colors are different; otherwise, false. |