DiagramShapeDefaultsFillGradientSettingsBuilder
Methods
Type(System.String)
Defines the type of the gradient. The supported values are "linear" and "radial".
Parameters
value - System.String
The value that configures the type.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd => sd
.Fill(f => f.Gradient(g => g.Type("radial")))
)
)
Center(System.Double[])
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.
Parameters
value - System.Double[]
The value that configures the center point.
Radius(System.Double)
Defines the radius of the radial gradient relative to the shape bounding box.
Parameters
value - System.Double
The value that configures the radius.
Example
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd => sd
.Fill(f => f.Gradient(g => g.Radius(0.9)))
)
)
Start(System.Double[])
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.
Parameters
value - System.Double[]
The value that configures the start point.
End(System.Double[])
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.
Parameters
value - System.Double[]
The value that configures the end point.
Stops(System.Action)
Defines the configuration of the gradient color stops.
Parameters
configurator - System.Action<DiagramShapeDefaultsFillGradientSettingsStopFactory>
The action that configures the stops.