Class ColorPalette
Represents a collection of user-selected colors.
Inheritance
System.Object
ColorPalette
Namespace: Telerik.Reporting.Drawing
Assembly: Telerik.Reporting.dll
Syntax
public class ColorPalette : IColorPalette, ICloneable, IEquatable<ColorPalette>
Constructors
ColorPalette()
Declaration
public ColorPalette()
ColorPalette(Color[])
Declaration
public ColorPalette(params Color[] colors)
Parameters
System.Drawing.Color[]
colors
|
ColorPalette(String[])
Declaration
public ColorPalette(params string[] hexColors)
Parameters
System.String[]
hexColors
|
Fields
DefaultPalette
Properties
Colors
Declaration
public List<Color> Colors { get; }
Property Value
System.Collections.Generic.List<System.Drawing.Color>
|
Methods
AddColors(IEnumerable<Color>)
Declaration
public void AddColors(IEnumerable<Color> colors)
Parameters
System.Collections.Generic.IEnumerable<System.Drawing.Color>
colors
|
AddColors(Color[])
Declaration
public void AddColors(params Color[] colors)
Parameters
System.Drawing.Color[]
colors
|
AddColors(String[])
Declaration
public void AddColors(params string[] hexColors)
Parameters
System.String[]
hexColors
|
Clone()
Declaration
public object Clone()
Returns
System.Object
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
System.Object.Equals(System.Object)
Equals(ColorPalette)
Declaration
public bool Equals(ColorPalette other)
Parameters
ColorPalette
other
|
Returns
System.Boolean
|
GetColor(Int32, Int32)
Declaration
public Color GetColor(int index, int count)
Parameters
System.Int32
index
|
System.Int32
count
|
Returns
System.Drawing.Color
|
Implements
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
System.Object.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Overrides
System.Object.ToString()