DiagramShapeDefaultsFillGradientSettingsBuilder
Methods
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.
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.ShapeDefaults(sd => sd
.Fill(f => f.Gradient(gradient => gradient.Center(20, 80)))
)
)
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.
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.ShapeDefaults(sd => sd
.Fill(f => f.Gradient(gradient => gradient.Start(0, 0)))
)
)
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.
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.ShapeDefaults(sd => sd
.Fill(f => f.Gradient(gradient => gradient.End(1, 1)))
)
)
Type(System.String)
The type of the gradient. The supported values are: linear or radial.
Parameters
value - System.String
The value for Type
Radius(System.Double)
The radius of the radial gradient relative to the shape bounding box.
Parameters
value - System.Double
The value for Radius
Stops(System.Action)
The array of gradient color stops.
Parameters
configurator - System.Action<DiagramShapeDefaultsFillGradientSettingsStopFactory>
The configurator for the stops setting.