MonochromaticPalette
Class
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:
C#
[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
Internal use only
C#
public MonochromaticPalette()
Internal use only
C#
public MonochromaticPalette(Color baseColor)
Properties
BaseColor
Color
Internal use only
C#
[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; }
MaxLightness
decimal
Gets or sets a value defining the maximal lightness of the generated colors
C#
[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; }
Value between 0.5M and 1M
MinLightness
decimal
Gets or sets a value defining the minimal lightness of the generated colors
C#
[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; }
Value between 0M and 0.5M
Methods
Clone()
object
Internal use only
C#
public object Clone()
object
Internal use only
Equals(object)
bool
Internal use only
C#
public override bool Equals(object obj)
bool
Overrides:
GetColor(int, int)
Color
Internal use only
C#
public Color GetColor(int index, int count)
Color
Implements:
Internal use only
C#
public override int GetHashCode()
int
Overrides:
ToString()
string
Internal use only
C#
public override string ToString()
string
Overrides: