Defines the fluent API for configuring DiagramShape
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramShapeBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramShapeBuilder<TShapeModel, TConnectionModel>
Inherited Members
Constructors
DiagramShapeBuilder method.
public DiagramShapeBuilder(DiagramShape<TShapeModel, TConnectionModel> container)
Properties
Container
DiagramShape<TShapeModel, TConnectionModel>
Container member.
protected DiagramShape<TShapeModel, TConnectionModel> Container { get; }
Methods
Defines accessibility options for the shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Accessibility(Action<DiagramShapeAccessibilitySettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeAccessibilitySettingsBuilder<TShapeModel, TConnectionModel> for the accessibility setting.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeBuilder<TShapeModel, TConnectionModel> .
The center point of the shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Center(Action<DiagramShapeCenterSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeCenterSettingsBuilder<TShapeModel, TConnectionModel> for the center setting.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeBuilder<TShapeModel, TConnectionModel> .
Defines default options for all connectors belonging to a given shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> ConnectorDefaults(Action<DiagramShapeConnectorDefaultsSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeConnectorDefaultsSettingsBuilder<TShapeModel, TConnectionModel> for the connectordefaults setting.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeBuilder<TShapeModel, TConnectionModel> .
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.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Connectors(Action<DiagramShapeConnectorFactory<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeConnectorFactory<TShapeModel, TConnectionModel> for the connectors setting.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeBuilder<TShapeModel, TConnectionModel> .
Defines the shapes content settings.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Content(Action<DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> for the content setting.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeBuilder<TShapeModel, TConnectionModel> .
Defines the corner radius of the shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> CornerRadius(double value)
The value for CornerRadius
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
The data item associated with the shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> DataItem(object value)
The value that configures the data item.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the shape editable options.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Editable(Action<DiagramShapeEditableSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeEditableSettingsBuilder<TShapeModel, TConnectionModel> for the editable setting.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeBuilder<TShapeModel, TConnectionModel> .
Defines the shape editable options.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Editable(bool enabled)
Enables or disables the editable option.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeEditableSettingsBuilder<TShapeModel, TConnectionModel> .
Defines the background fill options of the shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Fill(Action<DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel> for the fill setting.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeBuilder<TShapeModel, TConnectionModel> .
Defines the background fill options of the shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Fill(string fill)
The fill.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeBuilder<TShapeModel, TConnectionModel> .
Defines the height of the shape when added to the Diagram.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Height(double value)
The value for Height
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
Defines the hover configuration.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Hover(Action<DiagramShapeHoverSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeHoverSettingsBuilder<TShapeModel, TConnectionModel> for the hover setting.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeBuilder<TShapeModel, TConnectionModel> .
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.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Id(string value)
The value for Id
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
Defines the minimum height the shape should have, that is, it cannot be resized to a value smaller than the given one.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> MinHeight(double value)
The value for MinHeight
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
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.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> MinWidth(double value)
The value for MinWidth
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
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.").
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Path(string value)
The value for Path
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
The radius of circular shapes.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Radius(double value)
The value for Radius
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
Specifies a rotation angle for the shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Rotation(Action<DiagramShapeRotationSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeRotationSettingsBuilder<TShapeModel, TConnectionModel> for the rotation setting.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeBuilder<TShapeModel, TConnectionModel> .
Specifies if the shape can be selected.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Selectable(bool value)
The value for Selectable
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
The source of the shape image. Applicable when the type is set to "image".
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Source(string value)
The value for Source
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
Defines the shape border stroke configuration.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Stroke(Action<DiagramShapeStrokeSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeStrokeSettingsBuilder<TShapeModel, TConnectionModel> for the stroke setting.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeBuilder<TShapeModel, TConnectionModel> .
Specifies the type of the Diagram Shape using any of the built-in shape type. rectangle: this is the default option; circle: a circle/ellipse; image: an image or text: some text.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Type(DiagramShapeType value)
The value for Type
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
Specifies the type of the Workflow Shape type using any of the built-in shape types. Terminator: Start and end points of the workflow.; Process: Standard processing steps or actions.; Decision: Decision points with Yes/No or True/False branches.; Document: Document creation or data output.; PredefinedProcess: Subroutines or predefined operations.; Database:Database operations or data storage.; Delay:Wait periods or time-based operations. or ManualOperation:Manual tasks requiring human intervention.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Type(FlowchartShapeType value)
The value for Type
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettings<TShapeModel, TConnectionModel> instance.
Specifies the type of the Shape using any of the built-in shape type. rectangle: this is the default option; circle: a circle/ellipse; image: an image or text: some text. Or common workflow shapes as: Terminator: Start and end points of the workflow.; Process: Standard processing steps or actions.; Decision: Decision points with Yes/No or True/False branches.; Document: Document creation or data output.; PredefinedProcess: Subroutines or predefined operations.; Database:Database operations or data storage.; Delay:Wait periods or time-based operations. or ManualOperation:Manual tasks requiring human intervention..
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Type(string value)
The value for Type
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
A function returning a visual element to render for this shape.The following primitives can be used to construct a composite visual: Circle; Rectangle; Path; Line; Polyline; TextBlock; Image or Layout.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Visual(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
A function returning a visual element to render for this shape.The following primitives can be used to construct a composite visual: Circle; Rectangle; Path; Line; Polyline; TextBlock; Image or Layout.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Visual(string handler)
The name of the JavaScript function that will be evaluated.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
Defines the width of the shape when added to the Diagram.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Width(double value)
The value for Width
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
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.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> X(double value)
The value for X
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
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
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Y(double value)
The value for Y
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.