DiagramShapeFillSettingsBuilder
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")
.Shapes(shape => shape
.Add().Fill(f => f.Center(10,10))
)
)
Start(System.Double[])
Defines the start 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 start point.
Example
@(Html.Kendo().Diagram<OrgChartShape, OrgChartConnection>()
.Name("diagram")
.Shapes(shape => shape
.Add().Fill(f => f.Start(0,0))
)
)
End(System.Double[])
Defines the end of the radial gradient.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")
.Shapes(shape => shape
.Add().Fill(f => f.End(1,1))
)
)
Color(System.String)
Defines the fill color of the shape.
Parameters
value - System.String
The value for Color
Opacity(System.Double)
Defines the fill opacity of the shape.
Parameters
value - System.Double
The value for Opacity
Gradient(System.Action)
Defines the gradient fill of the shape.
Parameters
configurator - System.Action<DiagramShapeFillGradientSettingsBuilder>
The configurator for the gradient setting.