New to Telerik ReportingStart a free 30-day trial

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:

C#
[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

Internal use only

C#
public GradientPalette()

Internal use only

C#
public GradientPalette(Color startColor, Color endColor)
Parameters:startColorColorendColorColor

Properties

Internal use only

C#
[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; }

Internal use only

C#
[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; }

Methods

Clone()

object

Internal use only

C#
public object Clone()
Returns:

object

Internal use only

C#
public bool Equals(GradientPalette other)
Parameters:otherGradientPaletteReturns:

bool

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 string ToString()
Returns:

string

Overrides: object.ToString()