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

Defines the fluent API for configuring DiagramShapeFillSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel>

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

Constructors

DiagramShapeFillSettingsBuilder method.

C#
public DiagramShapeFillSettingsBuilder(DiagramShapeFillSettings<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramShapeFillSettings<TShapeModel, TConnectionModel>

Properties

Container

DiagramShapeFillSettings<TShapeModel, TConnectionModel>

Container member.

C#
protected DiagramShapeFillSettings<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 DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel> Center(params double[] value)
Parameters:valuedouble[]

The value that configures the center.

Returns:

DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel>

The DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel> instance to allow method chaining.

Example:
C#
@(Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.Shapes(shape =&gt; shape
.Add().Fill(f =&gt; f.Center(10,10))
)
)

Defines the fill color of the shape.

C#
public DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel> Color(string value)
Parameters:valuestring

The value for Color

Returns:

DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the end 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#
public DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel> End(params double[] value)
Parameters:valuedouble[]

The value that configures the end point.

Returns:

DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel>

The DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel> instance to allow method chaining.

Example:
C#
@(Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.Shapes(shape =&gt; shape
.Add().Fill(f =&gt; f.End(1,1))
)
)

Defines the gradient fill of the shape.

C#
public DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel> Gradient(Action<DiagramShapeFillGradientSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeFillGradientSettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramShapeFillGradientSettingsBuilder<TShapeModel, TConnectionModel> for the gradient setting.

Returns:

DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the fill opacity of the shape.

C#
public DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel> Opacity(double value)
Parameters:valuedouble

The value for Opacity

Returns:

DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the start 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 DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel> Start(params double[] value)
Parameters:valuedouble[]

The value that configures the start point.

Returns:

DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel>

The DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel> instance to allow method chaining.

Example:
C#
@(Html.Kendo().Diagram&lt;OrgChartShape, OrgChartConnection&gt;()
.Name("diagram")
.Shapes(shape =&gt; shape
.Add().Fill(f =&gt; f.Start(0,0))
)
)