New to Telerik ReportingStart a free 30-day trial

Represents a collection of user-selected colors.

Definition

Namespace:Telerik.Reporting.Drawing

Assembly:Telerik.Reporting.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
[AIAssistantDescription("Explicit, ordered list of colors assigned by position. Colors[0] goes to the first receiver, Colors[1] to the second, cycling back when exhausted. Use this palette when you know the exact colors you want. A single entry list colors all receivers in the same color. A multi-entry list assigns a fixed sequence across multiple series. This is the SIMPLEST and MOST COMMON palette choice for coloring.")]
public class ColorPalette : IColorPalette

Inheritance: objectColorPalette

Implements: IColorPalette

Constructors

TODO: Add documentation.

C#
public ColorPalette()

TODO: Add documentation.

C#
public ColorPalette(params Color[] colors)
Parameters:colorsColor[]

TODO: Add documentation.

C#
public ColorPalette(params string[] hexColors)
Parameters:hexColorsstring[]

Fields

Internal use only

C#
public static IColorPalette DefaultPalette

Properties

Colors

List<Color>

Internal use only

C#
[AIAssistantRequired]
[AIAssistantDescription("Ordered list of color strings.Each element must be a <color-string> where <color-string> is a color name (\"Red\"), hex (\"#FF0000\"), or RGB (\"255, 0, 0\").")]
public List<Color> Colors { get; }

Methods

TODO: Add documentation.

C#
public void AddColors(IEnumerable<Color> colors)
Parameters:colorsIEnumerable<Color>

TODO: Add documentation.

C#
public void AddColors(params Color[] colors)
Parameters:colorsColor[]

TODO: Add documentation.

C#
public void AddColors(params string[] hexColors)
Parameters:hexColorsstring[]

Internal use only

C#
public object Clone()
Returns:

object

TODO: Add documentation.

C#
public bool Equals(ColorPalette other)
Parameters:otherColorPaletteReturns:

bool

TODO: Add documentation.

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

bool

Overrides: object.Equals(object)

TODO: Add documentation.

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

Color

Implements: IColorPalette.GetColor(int, int)

TODO: Add documentation.

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

TODO: Add documentation.

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()