Kendo.Mvc.UI.Fluent.DiagramShapeBuilder
Defines the fluent API for configuring DiagramShape
Methods
Connectors(System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeConnectorFactory<T,T>>)
Defines the connectors available in the shape. A connector is the point in the shape where a connection between this shape and another one can originate from or end.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeConnectorFactory>
The configurator for the connectors setting.
ConnectorDefaults(System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeConnectorDefaultsSettingsBuilder<T,T>>)
Defines default options for all connectors belonging to a given shape.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeConnectorDefaultsSettingsBuilder>
The configurator for the connectordefaults setting.
Content(System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeContentSettingsBuilder<T,T>>)
Defines the shapes content settings.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeContentSettingsBuilder>
The configurator for the content setting.
Editable(System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeEditableSettingsBuilder<T,T>>)
Defines the shape editable options.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeEditableSettingsBuilder>
The configurator for the editable setting.
Editable(System.Boolean)
Defines the shape editable options.
Parameters
enabled System.Boolean
Enables or disables the editable option.
Fill(System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeFillSettingsBuilder<T,T>>)
Defines the background fill options of the shape.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeFillSettingsBuilder>
The configurator for the fill setting.
Height(System.Double)
Defines the height of the shape when added to the Diagram.
Parameters
value System.Double
The value for Height
Hover(System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeHoverSettingsBuilder<T,T>>)
Defines the hover configuration.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeHoverSettingsBuilder>
The configurator for the hover setting.
Id(System.String)
The unique identifier for a Shape. The id value is used to identify shapes in connection configurations. The connection to and from properties usually point to shape id values.
Parameters
value System.String
The value for Id
MinHeight(System.Double)
Defines the minimum height the shape should have, that is, it cannot be resized to a value smaller than the given one.
Parameters
value System.Double
The value for MinHeight
MinWidth(System.Double)
Defines the minimum width the shape should have, that is, it cannot be resized to a value smaller than the given one. See example at shapes.minHeight.
Parameters
value System.Double
The value for MinWidth
Path(System.String)
The path option of a Shape is a description of a custom geometry. The format follows the standard SVG format (https://www.w3.org/TR/SVG/paths.html#PathData "SVG Path data.").
Parameters
value System.String
The value for Path
Rotation(System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeRotationSettingsBuilder<T,T>>)
Specifies a rotation angle for the shape.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeRotationSettingsBuilder>
The configurator for the rotation setting.
Source(System.String)
The source of the shape image. Applicable when the type is set to "image".
Parameters
value System.String
The value for Source
Stroke(System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeStrokeSettingsBuilder<T,T>>)
Defines the shape border stroke configuration.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.DiagramShapeStrokeSettingsBuilder>
The configurator for the stroke setting.
Type(System.String)
Specifies the type of the Shape using any of the built-in shape type. "rectangle" - The default option; "circle" - A circle/ellipse or "image" - An image.
Parameters
value System.String
The value for Type
Visual(System.String)
A function returning a visual element to render for this shape. For more information, refer to visual.
Parameters
handler System.String
The name of the JavaScript function that will be evaluated.
Visual(System.Func<System.Object,System.Object>)
A function returning a visual element to render for this shape. For more information, refer to visual.
Parameters
handler System.Func<System.Object,System.Object>
The handler code wrapped in a text tag.
Width(System.Double)
Defines the width of the shape when added to the Diagram.
Parameters
value System.Double
The value for Width
X(System.Double)
Defines the x-coordinate of the shape when added to the Diagram. Does not take effect if the Diagram is using a pre-defined layout.
Parameters
value System.Double
The value for X
Y(System.Double)
Defines the y-coordinate of the shape when added to the Diagram. Does not take effect if the Diagram is using a pre-defined layout. You can see an example at shapes.x
Parameters
value System.Double
The value for Y