Class
GradientElement

Gradient element

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

cs-api-definition
public class GradientElement : StateManagedObject, IChartingStateManagedItem, IChartingStateManager, ICloneable

Inheritance: objectStateManagedObjectGradientElement

Implements: IChartingStateManagedItemIChartingStateManagerICloneable

Inherited Members StateManagedObject.CloneState()StateManagedObject.SaveViewState()StateManagedObject.TrackViewState()StateManagedObject.LoadViewState(object)StateManagedObject.SetDirty()StateManagedObject.ViewStateIgnoresCase

Constructors

GradientElement()

Create new instance of GradientElement class.

Declaration

cs-api-definition
public GradientElement()

GradientElement(Color, float)

Create new instance of GradientElement class.

Declaration

cs-api-definition
public GradientElement(Color color, float position)

Parameters

color

Color

Color

position

float

Position

Properties

Color

Gets and sets Color

Declaration

cs-api-definition
[TypeConverter(typeof(ColorConverter))]
[SkinnableProperty]
public Color Color { get; set; }

Property Value

Color

Color

Position

Gets and sets Position

Declaration

cs-api-definition
[SkinnableProperty]
public float Position { get; set; }

Property Value

float

Position

Methods

Clone()

Clone this object.

Declaration

cs-api-definition
public object Clone()

Returns

object

New instance of GradientElement class with the same fields as this one

Implements ICloneable.Clone()

Equals(object)

Comparing to objects

Declaration

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

Parameters

obj

object

Object for comparing

Returns

bool

Whether objects are equal or not

Overrides object.Equals(object)

GetHashCode()

Gets hash code

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Hash code

Overrides object.GetHashCode()

ToString()

ToString() override. Used in the properties grid to avoid object type showing.

Declaration

cs-api-definition
public override string ToString()

Returns

string

Empty string

Overrides StateManagedObject.ToString()