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

Defines the fluent API for configuring DiagramShapeDefaultsFillGradientSettings

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

DiagramShapeDefaultsFillGradientSettingsBuilder method.

C#
public DiagramShapeDefaultsFillGradientSettingsBuilder(DiagramShapeDefaultsFillGradientSettings<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramShapeDefaultsFillGradientSettings<TShapeModel, TConnectionModel>

Properties

Container member.

C#
protected DiagramShapeDefaultsFillGradientSettings<TShapeModel, TConnectionModel> Container { get; }

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.

Returns:

DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel>

A reference to DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> instance after the operation has completed.

Example:
C#
@(Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Fill(f =&gt; f.Gradient(gradient =&gt; gradient.Center(20, 80)))
)
)

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>

A reference to DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> instance after the operation has completed.

Example:
C#
@(Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Fill(f =&gt; f.Gradient(gradient =&gt; gradient.End(1, 1)))
)
)

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

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

The value for Radius

Returns:

DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> instance.

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>

A reference to DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> instance after the operation has completed.

Example:
C#
@(Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Fill(f =&gt; f.Gradient(gradient =&gt; gradient.Start(0, 0)))
)
)

The array of gradient color stops.

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

The DiagramShapeDefaultsFillGradientSettingsStopFactory<TShapeModel, TConnectionModel> for the stops setting.

Returns:

DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current instance of DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> .

The type of the gradient. The supported values are: linear or radial.

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

The value for Type

Returns:

DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsFillGradientSettingsBuilder<TShapeModel, TConnectionModel> instance.