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

DiagramShapeFillSettingsBuilder

Methods

Color(System.String)

Defines the fill color of the shape.

Parameters

value - System.String

The value that configures the color.

Example


             @(Html.Kendo().Diagram()
               .Name("diagram")
               .Shapes(shape => shape
                 .Add().Fill(f => f.Color("lime"))
               )
             )

Opacity(System.Double)

Defines the fill opacity of the shape.

Parameters

value - System.Double

The value that configures the opacity.

Example


             @(Html.Kendo().Diagram()
               .Name("diagram")
               .Shapes(shape => shape
                 .Add().Fill(f => f.Opacity(0.5))
               )
             )

Gradient(System.Action)

Defines the gradient fill of the shape.

Parameters

configurator - System.Action<DiagramShapeFillGradientSettingsBuilder>

The action that configures the gradient.

Example


             @(Html.Kendo().Diagram()
               .Name("diagram")
               .Shapes(shape => shape
                 .Add().Fill(f => f.Gradient(g => g.Type("radial").Center(new double[] { 0.5, 0.5 }).Radius(0.9)))
               )
             )

In this article
Not finding the help you need?