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

Defines the fluent API for configuring the DiagramShapeDefaultsFillSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramShapeDefaultsFillSettingsBuilder<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 DiagramShapeDefaultsFillSettingsBuilder(DiagramShapeDefaultsFillSettings settings)
Parameters:settingsDiagramShapeDefaultsFillSettings

Methods

Defines the default fill color of the shapes.

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

The value that configures the color.

Returns:

DiagramShapeDefaultsFillSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Fill(f =&gt; f.Color("red"))
)
)

Defines the default gradient fill of the shapes.

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

The action that configures the gradient settings.

Returns:

DiagramShapeDefaultsFillSettingsBuilder<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 default fill opacity of the shapes.

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

The value that configures the opacity.

Returns:

DiagramShapeDefaultsFillSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Fill(f =&gt; f.Opacity(0.5))
)
)