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.
RETURNS
A reference to DiagramShapeDefaultsFillGradientSettingsBuilder instance after the operation has completed.
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.
RETURNS
A reference to DiagramShapeDefaultsFillGradientSettingsBuilder instance after the operation has completed.
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.
RETURNS
A reference to DiagramShapeDefaultsFillGradientSettingsBuilder instance after the operation has completed.
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
RETURNS
Returns the current DiagramShapeDefaultsFillGradientSettingsBuilder instance.
Radius(System.Double)
The radius of the radial gradient relative to the shape bounding box.
Parameters
value - System.Double
The value for Radius
RETURNS
Returns the current DiagramShapeDefaultsFillGradientSettingsBuilder instance.
Stops(System.Action)
The array of gradient color stops.
Parameters
configurator - System.Action<DiagramShapeDefaultsFillGradientSettingsStopFactory>
The configurator for the stops setting.
RETURNS
Returns the current instance of DiagramShapeDefaultsFillGradientSettingsBuilder .