DiagramShapeBuilder
Defines the fluent API for configuring the DiagramShape settings.
Methods
ConnectorDefaults(System.Action)
Defines the default options for the shape connectors.
Parameters
configurator - System.Action<DiagramShapeConnectorBuilder>
The action that configures the default options.
Connectors(System.Action)
Defines the connectors the shape owns.
Parameters
configurator - System.Action<DiagramShapeConnectorFactory>
The action that configures the connectors.
Content(System.Action)
Defines the shapes content settings.
Parameters
configurator - System.Action<DiagramShapeContentSettingsBuilder>
The action that configures the content.
Editable(System.Boolean)
Defines the shape editable options.
Parameters
enabled - System.Boolean
Enables or disables the editable option.
Editable(System.Action)
Defines the shape editable options.
Parameters
configurator - System.Action<DiagramShapeEditableSettingsBuilder>
The action that configures the editable.
Fill(System.Action)
Defines the fill options of the shape.
Parameters
configurator - System.Action<DiagramShapeFillSettingsBuilder>
The action that configures the fill.
Height(System.Double)
Defines the height of the shape when added to the diagram.
Parameters
value - System.Double
The value that configures the height.
Hover(System.Action)
Defines the hover configuration.
Parameters
configurator - System.Action<DiagramShapeHoverSettingsBuilder>
The action that configures the hover.
Id(System.String)
The unique identifier for a Shape.
Parameters
value - System.String
The value that configures the id.
MinHeight(System.Double)
Defines the minimum height the shape should have, i.e. it cannot be resized to a value smaller than the given one.
Parameters
value - System.Double
The value that configures the minheight.
MinWidth(System.Double)
Defines the minimum width the shape should have, i.e. it cannot be resized to a value smaller than the given one.
Parameters
value - System.Double
The value that configures the minwidth.
Path(System.String)
The path option of a Shape is a description of a custom geometry. The format follows the standard SVG format (http://www.w3.org/TR/SVG/paths.html#PathData "SVG Path data.").
Parameters
value - System.String
The value that configures the path.
Rotation(System.Action)
The function that positions the connector.
Parameters
configurator - System.Action<DiagramShapeRotationSettingsBuilder>
The action that configures the rotation.
Source(System.String)
The source of the shape image. Applicable when the type is set to "image".
Parameters
value - System.String
The value that configures the source.
Stroke(System.Action)
Defines the stroke configuration.
Parameters
configurator - System.Action<DiagramShapeStrokeSettingsBuilder>
The action that configures the stroke.
Type(System.String)
Specifies the type of the Shape using any of the built-in shape type.
Parameters
value - System.String
The value that configures the type.
Width(System.Double)
Defines the width of the shape when added to the diagram.
Parameters
value - System.Double
The value that configures the width.
X(System.Double)
Defines the x-coordinate of the shape when added to the diagram.
Parameters
value - System.Double
The value that configures the x.
Y(System.Double)
Defines the y-coordinate of the shape when added to the diagram.
Parameters
value - System.Double
The value that configures the y.
Visual(System.Func)
Defines the inline visual template
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Visual(System.String)
Defines the name of the JavaScript function that will create the visual element.
Parameters
visualHandler - System.String
The name of the JavaScript function that will create the visual element.