New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Defines the gradient fill of the shape.

Definition

Namespace:Telerik.Web.UI.Diagram

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class Gradient : StateManager, IMarkableStateManager, IStateManager, IDefaultCheck

Inheritance: objectStateManagerGradient

Implements: IDefaultCheckIMarkableStateManagerIStateManager

Inherited Members StateManager.IsTrackingViewStateStateManager.ViewStateobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public Gradient()

Properties

The center of the radial gradient.Coordinates are relative to the shape bounding box. For example [0, 0] is top left and [1, 1] is bottom right.

C#
[TypeConverter(typeof(DoubleArrayConverter))]
public object[] Center { get; set; }

The end point of the linear gradient.Coordinates are relative to the shape bounding box. For example [0, 0] is top left and [1, 1] is bottom right.

C#
[TypeConverter(typeof(DoubleArrayConverter))]
public object[] End { get; set; }

Specifies whether the implementing object has default values.

C#
public bool IsDefault { get; }

Implements: IDefaultCheck.IsDefault

The radius of the radial gradient relative to the shape bounding box.

C#
public double Radius { get; set; }

The start point of the linear gradient.Coordinates are relative to the shape bounding box. For example [0, 0] is top left and [1, 1] is bottom right.

C#
[TypeConverter(typeof(DoubleArrayConverter))]
public object[] Start { get; set; }

The array of gradient color stops.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramGradientStopsCollection StopsCollection { get; }

Define the type of the gradient.

C#
public GradientType Type { get; set; }

Methods

C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: StateManager.LoadViewState(object)

C#
protected override object SaveViewState()
Returns:

object

Overrides: StateManager.SaveViewState()

C#
protected override void TrackViewState()

Overrides: StateManager.TrackViewState()