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

Defines the fluent API for configuring the DiagramShapeDefaultsFillGradientSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

C#
public class DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class

Inheritance: objectDiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel>

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

Constructors

C#
public DiagramShapeDefaultsFillGradientSettingsBuilder(DiagramShapeDefaultsFillGradientSettings settings)
Parameters:settingsDiagramShapeDefaultsFillGradientSettings

Methods

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

C#
public DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> Center(params double[] value)
Parameters:valuedouble[]

The value that configures the center point.

Returns:

DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel>

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

C#
public DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> End(params double[] value)
Parameters:valuedouble[]

The value that configures the end point.

Returns:

DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel>

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

C#
public DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> Radius(double value)
Parameters:valuedouble

The value that configures the radius.

Returns:

DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Fill(f =&gt; f.Gradient(g =&gt; g.Radius(0.9)))
)
)

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

C#
public DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> Start(params double[] value)
Parameters:valuedouble[]

The value that configures the start point.

Returns:

DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel>

Defines the configuration of the gradient color stops.

C#
public DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> Stops(Action<DiagramShapeDefaultsFillGradientSettingsStopFactory<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeDefaultsFillGradientSettingsStopFactory<TShapeModel, TConnectionModel>>

The action that configures the stops.

Returns:

DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel>

Defines the type of the gradient. The supported values are "linear" and "radial".

C#
public DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> Type(string value)
Parameters:valuestring

The value that configures the type.

Returns:

DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Fill(f =&gt; f.Gradient(g =&gt; g.Type("radial")))
)
)