Class ColorBlend
Defines arrays of elements and positions used for interpolating GradientElement blending in a multicolor gradient.
Inherited Members
Namespace: Telerik.Charting
Assembly: Telerik.WinControls.RadChart.dll
Syntax
public class ColorBlend : ChartingStateManagedCollection<GradientElement>, IDeserializableCollection, IList<GradientElement>, ICollection<GradientElement>, IEnumerable<GradientElement>, IChartingStateManager, IList, ICollection, IEnumerable, ICloneable
Constructors
ColorBlend()
Create new instance of ColorBlend class.
Declaration
public ColorBlend()
ColorBlend(Color[])
Create new instance of ColorBlend class.
Declaration
public ColorBlend(Color[] colors)
Parameters
System.Drawing.Color[]
colors
Colors to add |
ColorBlend(Color[], Object)
Create new instance of ColorBlend class.
Declaration
public ColorBlend(Color[] colors, object containerObject)
Parameters
System.Drawing.Color[]
colors
Colors to add to the object |
System.Object
containerObject
Container element |
ColorBlend(Color[], Single[])
Create new instance of ColorBlend class.
Declaration
public ColorBlend(Color[] colors, float[] positions)
Parameters
System.Drawing.Color[]
colors
Colors to add to the object |
System.Single[]
positions
Positions of colors |
ColorBlend(Color[], Single[], Object)
Create new instance of ColorBlend class.
Declaration
public ColorBlend(Color[] colors, float[] positions, object containerObject)
Parameters
System.Drawing.Color[]
colors
Colors to add to the object. |
System.Single[]
positions
Positions of colors. |
System.Object
containerObject
Container element |
ColorBlend(Object)
Create new instance of ColorBlend class.
Declaration
public ColorBlend(object containerObject)
Parameters
System.Object
containerObject
Container element. |
Methods
AddRange(ColorBlend)
Adds a range of elements to the collection.
Declaration
public void AddRange(ColorBlend blend)
Parameters
ColorBlend
blend
Object that contains element to add |
Clone()
Clone this object.
Declaration
public object Clone()
Returns
System.Object
New instance of ColorBlend class with the same fields as this one. |
Implements
Equals(Object)
Comparing two objects.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
Object to compare. |
Returns
System.Boolean
Whether objects equal or not |
Overrides
GetBrush(RectangleF, Single)
Returns gradient brush
Declaration
public LinearGradientBrush GetBrush(RectangleF rectangle, float angle)
Parameters
System.Drawing.RectangleF
rectangle
Rectangle of brush |
System.Single
angle
Angle of brush. |
Returns
System.Drawing.Drawing2D.LinearGradientBrush
Gradient brush |
GetColor(Single)
Gets color at specified position.
Declaration
public Color GetColor(float pos)
Parameters
System.Single
pos
Position to get color. |
Returns
System.Drawing.Color
Color at specified position. |
GetColors()
Gets ColorBlend's colors.
Declaration
public Color[] GetColors()
Returns
System.Drawing.Color[]
ColorBlend's colors. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
GetPositions()
Gets ColorBlend's positions.
Declaration
public float[] GetPositions()
Returns
System.Single[]
ColorBlend's positions. |
LoadFrom(ColorBlend)
Load pairs colors\positions from specified object.
Declaration
public void LoadFrom(ColorBlend blend)
Parameters
ColorBlend
blend
Object to load from. |