Defines the fluent API for configuring the DiagramConnection settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramConnectionBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramConnectionBuilder<TShapeModel, TConnectionModel>
Inherited Members
Constructors
Methods
Defines accessibility options for the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Accessibility(Action<DiagramConnectionAccessibilitySettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the accessibility.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the content settings of the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Content(Action<DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the content settings.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the corner radius of the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> CornerRadius(double value)
The value that configures the corner radius.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the connection dataItem.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> DataItem(object value)
The value that configures the data item.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the connection editable options.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Editable(Action<DiagramConnectionEditableSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the editable settings.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the connection editable options.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Editable(bool enabled)
The value that toggles the editable option.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the connection end cap configuration.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> EndCap(Action<DiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the end cap settings.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Sets the connection end cap type name. The supported values are: "none", "ArrowEnd", and "FilledCircle". You can also use "ArrowStart", but its direction will be inversed.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> EndCap(string type)
The value that configures the end cap type.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the source of the connection. You can set this property to a value matching a shape id or to an object with XY-coordinates.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> From(Action<DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the source settings.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Specifies the name of the source shape connector that must be used by the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> FromConnector(string value)
The value that configures the source connector.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the hover configuration of the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Hover(Action<DiagramConnectionHoverSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the hover settings.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Sets the intermediate points (in global coordinates) of the connection. It is important to note that currently these points cannot be manipulated through the interface.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Points(Action<DiagramConnectionPointFactory<TShapeModel, TConnectionModel>> configurator)
The action that configures the points.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Specifies if the connection can be selected.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Selectable(bool value)
The value that configures the selectable.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the connection selection configuration.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Selection(Action<DiagramConnectionSelectionSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the selection options.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the connection start cap configuration.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> StartCap(Action<DiagramConnectionStartCapSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the start cap.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the connection start cap type. The supported values are: "none", "ArrowStart", and "FilledCircle".
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> StartCap(string type)
The value that configures the start cap type.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the stroke configuration of the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Stroke(Action<DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the stroke settings.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the target of the connection. You can set this property to a value matching a shape id or to an object with XY-coordinates.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> To(Action<DiagramConnectionToSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the target settings.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Specifies the name of the target shape connector that must be used by the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> ToConnector(string value)
The value that configures the target connector.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Specifies the connection type that defines the way it routes. The routing of a connection is the way intermediate points of a connection define a route. A route is usually defined on the basis of constraints or behaviors. Currently, there are two routing mechanisms for Diagram connections:
- Polyline route - Connects the defined intermediate points.
- Cascading route - A simple rectangular route that creates a cascading path between the two ends of a connection, ignoring given connection points. The cascading type is useful when using tree layout and hierarchies. The routed connection will in this case enhance the representation of the hierarchy, reproducing a classic organization diagram.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Type(DiagramConnectionType value)
The enum value that configures the type option.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>