New to Telerik ReportingStart a free 30-day trial

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: IColorPalette

Constructors

Internal use only

C#
public MonochromaticPalette()

Internal use only

C#
public MonochromaticPalette(Color baseColor)
Parameters:baseColorColor

Properties

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; }

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; }
Property Value:

Value between 0.5M and 1M

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; }
Property Value:

Value between 0M and 0.5M

Methods

Clone()

object

Internal use only

C#
public object Clone()
Returns:

object

Internal use only

C#
public bool Equals(MonochromaticPalette other)
Parameters:otherMonochromaticPaletteReturns:

bool

Internal use only

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: object.Equals(object)

Internal use only

C#
public Color GetColor(int index, int count)
Parameters:indexintcountintReturns:

Color

Implements: IColorPalette.GetColor(int, int)

Internal use only

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

Internal use only

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()