Class
GradientPalette

A color palette that generates transitional colors based on a continuous linear gradient between two base colors.

Definition

Namespace:Telerik.Reporting.Drawing

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(ExpandableObjectConverter))]
[AIAssistantDescription("Generates a smooth color gradient between two base colors — BeginColor and EndColor. Each series/data-point receives an interpolated color along the gradient: the first gets BeginColor, the last gets EndColor, and intermediate items receive evenly spaced in-between colors. Use this palette when you want a continuous color progression (e.g. light blue → dark blue across all bars). Both BeginColor and EndColor are plain color strings (e.g. \"Red\", \"#0000FF\", \"0, 0, 255\"). If only two distinct colors are needed, set BeginColor to the first color and EndColor to the last.")]
public class GradientPalette : IColorPalette

Inheritance: objectGradientPalette

Implements: IColorPalette

Constructors

GradientPalette()

Internal use only

Declaration

cs-api-definition
public GradientPalette()

GradientPalette(Color, Color)

Internal use only

Declaration

cs-api-definition
public GradientPalette(Color startColor, Color endColor)

Parameters

startColor

Color

endColor

Color

Properties

BeginColor

Internal use only

Declaration

cs-api-definition
[AIAssistantDescription("The starting color of the gradient. The first colored item receives this color exactly. A plain color string — e.g. \"Blue\", \"#0000FF\", or \"0, 0, 255\".")]
public Color BeginColor { get; set; }

Property Value

Color

EndColor

Internal use only

Declaration

cs-api-definition
[AIAssistantDescription("The ending color of the gradient. The last colored item receives this color exactly; intermediate items are interpolated between BeginColor and EndColor. A plain color string — e.g. \"DarkBlue\", \"#00008B\", or \"0, 0, 139\".")]
public Color EndColor { get; set; }

Property Value

Color

Methods

Clone()

Internal use only

Declaration

cs-api-definition
public object Clone()

Returns

object

Equals(GradientPalette)

Internal use only

Declaration

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

Parameters

other

GradientPalette

Returns

bool

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)

ToString()

Internal use only

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()