Defines the fluent API for configuring DiagramConnection
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
DiagramConnectionBuilder method.
public DiagramConnectionBuilder(DiagramConnection<TShapeModel, TConnectionModel> container)
Properties
Container
DiagramConnection<TShapeModel, TConnectionModel>
Container member.
protected DiagramConnection<TShapeModel, TConnectionModel> Container { get; }
Methods
Defines accessibility options for the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Accessibility(Action<DiagramConnectionAccessibilitySettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramConnectionAccessibilitySettingsBuilder<TShapeModel, TConnectionModel> for the accessibility setting.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramConnectionBuilder<TShapeModel, TConnectionModel> .
Defines the connection content settings.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Content(Action<DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> for the content setting.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramConnectionBuilder<TShapeModel, TConnectionModel> .
Defines the corner radius of the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> CornerRadius(double value)
The value for CornerRadius
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramConnectionBuilder<TShapeModel, TConnectionModel> instance.
Defines the connection dataItem.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> DataItem(object value)
The value that configures the data item.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Defines the shape editable options.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Editable(Action<DiagramConnectionEditableSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramConnectionEditableSettingsBuilder<TShapeModel, TConnectionModel> for the editable setting.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramConnectionBuilder<TShapeModel, TConnectionModel> .
Defines the shape editable options.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Editable(bool enabled)
Enables or disables the editable option.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramConnectionEditableSettingsBuilder<TShapeModel, TConnectionModel> .
The connection end cap configuration or type name.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> EndCap(Action<DiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel> for the endcap setting.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramConnectionBuilder<TShapeModel, TConnectionModel> .
The connection end cap configuration or type name.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> EndCap(string endCap)
The endcap.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of 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 DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel> for the from setting.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of 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(string from)
The from.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramConnectionBuilder<TShapeModel, TConnectionModel> .
Specifies the name of the source shape connector that should be used by the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> FromConnector(string value)
The value for FromConnector
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramConnectionBuilder<TShapeModel, TConnectionModel> instance.
Defines the hover configuration.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Hover(Action<DiagramConnectionHoverSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramConnectionHoverSettingsBuilder<TShapeModel, TConnectionModel> for the hover setting.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramConnectionBuilder<TShapeModel, TConnectionModel> .
Sets the intermediate points (in global coordinates) of the connection. These points cannot be manipulated by user action.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Points(Action<DiagramConnectionPointFactory<TShapeModel, TConnectionModel>> configurator)
The DiagramConnectionPointFactory<TShapeModel, TConnectionModel> for the points setting.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramConnectionBuilder<TShapeModel, TConnectionModel> .
Specifies if the connection can be selected.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Selectable(bool value)
The value for Selectable
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramConnectionBuilder<TShapeModel, TConnectionModel> instance.
Defines the connection selection configuration.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Selection(Action<DiagramConnectionSelectionSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramConnectionSelectionSettingsBuilder<TShapeModel, TConnectionModel> for the selection setting.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramConnectionBuilder<TShapeModel, TConnectionModel> .
The start cap (arrow, head or decoration) of the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> StartCap(Action<DiagramConnectionStartCapSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramConnectionStartCapSettingsBuilder<TShapeModel, TConnectionModel> for the startcap setting.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramConnectionBuilder<TShapeModel, TConnectionModel> .
The start cap (arrow, head or decoration) of the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> StartCap(string startCap)
The startcap.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramConnectionBuilder<TShapeModel, TConnectionModel> .
Defines the stroke configuration.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Stroke(Action<DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel> for the stroke setting.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of 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 DiagramConnectionToSettingsBuilder<TShapeModel, TConnectionModel> for the to setting.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of 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(string to)
The to.
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramConnectionBuilder<TShapeModel, TConnectionModel> .
Specifies the name of the target shape connector that should be used by the connection.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> ToConnector(string value)
The value for ToConnector
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramConnectionBuilder<TShapeModel, TConnectionModel> instance.
The connection type.
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Type(DiagramConnectionType value)
The value for Type
Returns:DiagramConnectionBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramConnectionBuilder<TShapeModel, TConnectionModel> instance.