DiagramShapeDefaultsFillSettingsBuilder
Methods
Color(System.String)
Defines the default fill color of the shapes.
Parameters
value - System.String
The value that configures the color.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd => sd
.Fill(f => f.Color("red"))
)
)
Opacity(System.Double)
Defines the default fill opacity of the shapes.
Parameters
value - System.Double
The value that configures the opacity.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd => sd
.Fill(f => f.Opacity(0.5))
)
)
Gradient(System.Action)
Defines the default gradient fill of the shapes.
Parameters
configurator - System.Action<DiagramShapeDefaultsFillGradientSettingsBuilder>
The action that configures the gradient settings.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd => sd
.Fill(f => f.Gradient(g => g.Radius(0.9)))
)
)