[]
Represents an extended color.
public class UserColor
Initializes a new instance of the UserColor class.
public UserColor(SolidColor color)
color
SolidColorThe SolidColor to copy properties from.
Initializes a new instance of the UserColor class.
public UserColor(ThemeColorId themeColor, float transparency, float brightness, float tintAndShade)
themeColor
ThemeColorIdA theme color that should be applied to the object.
transparency
floatThe degree of transparency of the color as a value between 0 (opaque) and 1 (clear).
brightness
floatThe brightness of the color from -1 (darkest) to 1 (lightest), zero being neutral.
tintAndShade
floatThe lightening or darkening of the color from -1 (darkest) to 1 (lightest), zero being neutral.
Initializes a new instance of the UserColor class.
public UserColor(ThemeColorId themeColor, float transparency)
themeColor
ThemeColorIdA theme color that should be applied to the object.
transparency
floatThe degree of transparency of the color as a value between 0 (opaque) and 1 (clear).
Initializes a new instance of the UserColor class.
public UserColor(ThemeColorId themeColor)
themeColor
ThemeColorIda theme color that should be applied to the object.
Initializes a new instance of the UserColor class.
public UserColor(Color color)
color
System.Drawing.ColorThe Color to copy properties from.
Gets the brightness of the color from -1 (darkest) to 1 (lightest), zero being neutral.
public float Brightness { get; }
Gets the RGB value of this color.
public Color Color { get; }
Gets a theme color that should be applied to the object.
public ThemeColorId ThemeColor { get; }
Gets the lightening or darkening of the color from -1 (darkest) to 1 (lightest), zero being neutral.
public float TintAndShade { get; }
Gets the degree of transparency of the color as a value between 0 (opaque) and 1 (clear).
public float Transparency { get; }