Class
ColorBlend

Defines arrays of elements and positions used for interpolating GradientElement blending in a multicolor gradient.

Definition

Namespace:Telerik.Reporting.Charting

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
public class ColorBlend : ChartingStateManagedCollection<GradientElement>, IChartingStateManager

Inheritance: objectChartingStateManagedCollection<GradientElement>ColorBlend

Implements: IChartingStateManager

Inherited Members ChartingStateManagedCollection<GradientElement>.IndexOf(GradientElement)ChartingStateManagedCollection<GradientElement>.Insert(int, GradientElement)ChartingStateManagedCollection<GradientElement>.RemoveAt(int)ChartingStateManagedCollection<GradientElement>.Add(GradientElement)ChartingStateManagedCollection<GradientElement>.AddRange(GradientElement[])ChartingStateManagedCollection<GradientElement>.Clear()ChartingStateManagedCollection<GradientElement>.Contains(GradientElement)ChartingStateManagedCollection<GradientElement>.CopyTo(GradientElement[], int)ChartingStateManagedCollection<GradientElement>.Remove(GradientElement)ChartingStateManagedCollection<GradientElement>.GetEnumerator()ChartingStateManagedCollection<GradientElement>.LoadViewState(object)ChartingStateManagedCollection<GradientElement>.SaveViewState()ChartingStateManagedCollection<GradientElement>.SetItemDirty(GradientElement)ChartingStateManagedCollection<GradientElement>.OnInsert(int, object)ChartingStateManagedCollection<GradientElement>.OnInsertComplete(int, object)ChartingStateManagedCollection<GradientElement>.OnRemove(int, object)ChartingStateManagedCollection<GradientElement>.OnRemoveComplete(int, object)ChartingStateManagedCollection<GradientElement>.OnClear()ChartingStateManagedCollection<GradientElement>.OnClearComplete()ChartingStateManagedCollection<GradientElement>.ListChartingStateManagedCollection<GradientElement>.this[int]ChartingStateManagedCollection<GradientElement>.CountChartingStateManagedCollection<GradientElement>.IsReadOnly

Constructors

ColorBlend()

Create new instance of ColorBlend class.

Declaration

cs-api-definition
public ColorBlend()

ColorBlend(Color[])

Create new instance of ColorBlend class.

Declaration

cs-api-definition
public ColorBlend(Color[] colors)

Parameters

colors

Color[]

Colors to add

ColorBlend(Color[], float[])

Create new instance of ColorBlend class.

Declaration

cs-api-definition
public ColorBlend(Color[] colors, float[] positions)

Parameters

colors

Color[]

Colors to add to the object

positions

float[]

Positions of colors

ColorBlend(Color[], float[], object)

Create new instance of ColorBlend class.

Declaration

cs-api-definition
public ColorBlend(Color[] colors, float[] positions, object containerObject)

Parameters

colors

Color[]

Colors to add to the object.

positions

float[]

Positions of colors.

containerObject

object

Container element

ColorBlend(Color[], object)

Create new instance of ColorBlend class.

Declaration

cs-api-definition
public ColorBlend(Color[] colors, object containerObject)

Parameters

colors

Color[]

Colors to add to the object

containerObject

object

Container element

ColorBlend(object)

Create new instance of ColorBlend class.

Declaration

cs-api-definition
public ColorBlend(object containerObject)

Parameters

containerObject

object

Container element.

Methods

AddRange(ColorBlend)

Adds a range of elements to the collection.

Declaration

cs-api-definition
public void AddRange(ColorBlend blend)

Parameters

blend

ColorBlend

Object that contains element to add

Clone()

Clone this object.

Declaration

cs-api-definition
public object Clone()

Returns

object

New instance of ColorBlend class with the same fields as this one.

Equals(object)

Comparing two objects.

Declaration

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

Parameters

obj

object

Object to compare.

Returns

bool

Whether objects equal or not

Overrides object.Equals(object)

GetBrush(RectangleF, float)

Returns gradient brush

Declaration

cs-api-definition
public LinearGradientBrush GetBrush(RectangleF rectangle, float angle)

Parameters

rectangle

RectangleF

Rectangle of brush

angle

float

Angle of brush.

Returns

LinearGradientBrush

Gradient brush

GetColor(float)

Gets color at specified position.

Declaration

cs-api-definition
public Color GetColor(float pos)

Parameters

pos

float

Position to get color.

Returns

Color

Color at specified position.

GetColors()

Gets ColorBlend's colors.

Declaration

cs-api-definition
public Color[] GetColors()

Returns

Color[]

ColorBlend's colors.

GetHashCode()

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides object.GetHashCode()

GetPositions()

Gets ColorBlend's positions.

Declaration

cs-api-definition
public float[] GetPositions()

Returns

float[]

ColorBlend's positions.

LoadFrom(ColorBlend)

Load pairs colors\positions from specified object.

Declaration

cs-api-definition
public void LoadFrom(ColorBlend blend)

Parameters

blend

ColorBlend

Object to load from.