Defines the fluent API for configuring the DiagramShape settings.
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
Methods
Defines accessibility options for the shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Accessibility(Action<DiagramShapeAccessibilitySettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the accessibility.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
The center point of the shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Center(Action<DiagramShapeCenterSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the center.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the default options for all connectors belonging to a given shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> ConnectorDefaults(Action<DiagramShapeConnectorDefaultsSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the default connectors.
Returns: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 action that configures the connectors.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the shapes content settings.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Content(Action<DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the content.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the corner radius of the shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> CornerRadius(double value)
The value that configures the corner radius.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
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 action that configures the editable settings.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the shape editable options.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Editable(bool enabled)
The value that enables or disables the shape editing.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the background fill options of the shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Fill(Action<DiagramShapeFillSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the fill settings.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the height of the shape when added to the Diagram.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Height(double value)
The value that configures the height.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the hover configuration.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Hover(Action<DiagramShapeHoverSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the hover.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines 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 that configures the id.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the minimum height the shape must have. For example, the shape cannot be resized to a value smaller than the given one.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> MinHeight(double value)
The value that configures the minimum height.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the minimum width the shape must have. For example, the shape cannot be resized to a value smaller than the given one.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> MinWidth(double value)
The value that configures the minimum width.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Sets the path option of a Shape, which 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.").
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Path(string value)
The value that configures the path.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
The radius of circular shapes.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Radius(double value)
The value that configures the radius.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines a rotation angle for the shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Rotation(Action<DiagramShapeRotationSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the rotation settings.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Specifies if the shape can be selected.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Selectable(bool value)
The value that configures the selectable.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Sets the source of the shape image. The option applies when the shape type is "image".
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Source(string value)
The value that configures the source.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the shape border stroke configuration.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Stroke(Action<DiagramShapeStrokeSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the stroke.
Returns: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 DiagramShapeBuilder<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 that configures the type.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines a JavaScript function that returns a visual element to render for the Shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Visual(Func<object, object> inlineCodeBlock)
The handler code wrapped in a text tag (Razor syntax).
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines a JavaScript function that returns a visual element to render for the Shape.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Visual(string visualHandler)
The name of the JavaScript function that will create the visual element.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the width of the shape when added to the Diagram.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Width(double value)
The value that configures the width.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the x-coordinate of the shape when added to the Diagram. The option does not take effect if the Diagram is using a pre-defined layout.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> X(double value)
The value that configures the x-coordinate.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>
Defines the y-coordinate of the shape when added to the Diagram. The option does not take effect if the Diagram is using a pre-defined layout.
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Y(double value)
The value that configures the y-coordinate.
Returns:DiagramShapeBuilder<TShapeModel, TConnectionModel>