Class
MonochromaticPalette

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:

cs-api-definition
[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

MonochromaticPalette()

Internal use only

Declaration

cs-api-definition
public MonochromaticPalette()

MonochromaticPalette(Color)

Internal use only

Declaration

cs-api-definition
public MonochromaticPalette(Color baseColor)

Parameters

baseColor

Color

Properties

BaseColor

Internal use only

Declaration

cs-api-definition
[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

cs-api-definition
[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

cs-api-definition
[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

Clone()

Internal use only

Declaration

cs-api-definition
public object Clone()

Returns

object

Equals(MonochromaticPalette)

Internal use only

Declaration

cs-api-definition
public bool Equals(MonochromaticPalette other)

Parameters

other

MonochromaticPalette

Returns

bool

Equals(object)

Internal use only

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Returns

bool

Overrides object.Equals(object)

GetColor(int, int)

Internal use only

Declaration

cs-api-definition
public Color GetColor(int index, int count)

Parameters

index

int

count

int

Returns

Color

Implements IColorPalette.GetColor(int, int)

GetHashCode()

Internal use only

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides object.GetHashCode()

ToString()

Internal use only

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()