New to Telerik ReportingStart a free 30-day trial

Gradient element

Definition

Constructors

Create new instance of GradientElement class.

C#
public GradientElement()

Create new instance of GradientElement class.

C#
public GradientElement(Color color, float position)
Parameters:colorColor

Color

positionfloat

Position

Properties

Color

Color

Gets and sets Color

C#
[TypeConverter(typeof(ColorConverter))]
[SkinnableProperty]
public Color Color { get; set; }
Property Value:

Color

Gets and sets Position

C#
[SkinnableProperty]
public float Position { get; set; }
Property Value:

Position

Methods

Clone()

object

Clone this object.

C#
public object Clone()
Returns:

object

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

Comparing to objects

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

Object for comparing

Returns:

bool

Whether objects are equal or not

Overrides: object.Equals(object)

Gets hash code

C#
public override int GetHashCode()
Returns:

int

Hash code

Overrides: object.GetHashCode()

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

C#
public override string ToString()
Returns:

string

Empty string

Overrides: StateManagedObject.ToString()