ClassMonochromaticPalette
A color palette that provides colors generated using a variable lightness between defined minimum and maximum values.
Definition
Namespace:Telerik.Reporting.Drawing
Assembly:Telerik.Reporting.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
[AIAssistantDescription("Generates a family of colors derived from a single base hue by varying lightness across the MinLightness–MaxLightness range. The first item always receives BaseColor; subsequent items receive progressively lighter or darker shades of the same hue. BaseColor is a plain color string (e.g. \"SteelBlue\", \"#4682B4\", \"70, 130, 180\"). MinLightness (0–0.5, default 0.38) and MaxLightness (0.5–1.0, default 0.82) control how dark/light the shades get.")]
public class MonochromaticPalette : IColorPalette
Inheritance: objectMonochromaticPalette
Implements:
Constructors
MonochromaticPalette(Color)
Internal use only
Declaration
public MonochromaticPalette(Color baseColor)
Parameters
baseColor
Color
Properties
BaseColor
Internal use only
Declaration
[AIAssistantDescription("The base hue color from which all palette shades are derived. The first series/data-point always receives this exact color. A plain color string — e.g. \"SteelBlue\", \"#4682B4\", or \"70, 130, 180\".")]
public Color BaseColor { get; set; }
Property Value
Color
MaxLightness
Gets or sets a value defining the maximal lightness of the generated colors
Declaration
[AIAssistantDescription("Maximum lightness of the generated shades. Value between 0.5 and 1.0 (very light). Default is 0.82. Higher values allow lighter shades.")]
public decimal MaxLightness { get; set; }
Property Value
decimal
Value between 0.5M and 1M
MinLightness
Gets or sets a value defining the minimal lightness of the generated colors
Declaration
[AIAssistantDescription("Minimum lightness of the generated shades. Value between 0.0 (very dark) and 0.5. Default is 0.38. Lower values allow darker shades.")]
public decimal MinLightness { get; set; }
Property Value
decimal
Value between 0M and 0.5M
Methods
Equals(MonochromaticPalette)
Internal use only
Declaration
public bool Equals(MonochromaticPalette other)
Parameters
other
Returns
bool
Equals(object)
Internal use only
Declaration
public override bool Equals(object obj)
Parameters
obj
object
Returns
bool
Overrides
GetColor(int, int)
Internal use only
Declaration
public Color GetColor(int index, int count)
Parameters
index
int
count
int
Returns
Color
Implements
GetHashCode()
Internal use only
Declaration
public override int GetHashCode()
Returns
int
Overrides
ToString()
Internal use only
Declaration
public override string ToString()
Returns
string
Overrides