New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring DiagramConnection

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

C#
public class DiagramConnectionBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class

Inheritance: objectDiagramConnectionBuilder<TShapeModel, TConnectionModel>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

DiagramConnectionBuilder method.

C#
public DiagramConnectionBuilder(DiagramConnection<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramConnection<TShapeModel, TConnectionModel>

Properties

Container

DiagramConnection<TShapeModel, TConnectionModel>

Container member.

C#
protected DiagramConnection<TShapeModel, TConnectionModel> Container { get; }

Methods

Defines accessibility options for the connection.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Accessibility(Action<DiagramConnectionAccessibilitySettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionAccessibilitySettingsBuilder<TShapeModel, TConnectionModel>>

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Content(Action<DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>>

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> CornerRadius(double value)
Parameters:valuedouble

The value for CornerRadius

Returns:

DiagramConnectionBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionBuilder<TShapeModel, TConnectionModel> instance.

Defines the connection dataItem.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> DataItem(object value)
Parameters:valueobject

The value that configures the data item.

Returns:

DiagramConnectionBuilder<TShapeModel, TConnectionModel>

Defines the shape editable options.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Editable(Action<DiagramConnectionEditableSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionEditableSettingsBuilder<TShapeModel, TConnectionModel>>

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Editable(bool enabled)
Parameters:enabledbool

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> EndCap(Action<DiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel>>

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> EndCap(string endCap)
Parameters:endCapstring

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> From(Action<DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel>>

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> From(string from)
Parameters:fromstring

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> FromConnector(string value)
Parameters:valuestring

The value for FromConnector

Returns:

DiagramConnectionBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionBuilder<TShapeModel, TConnectionModel> instance.

Defines the hover configuration.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Hover(Action<DiagramConnectionHoverSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionHoverSettingsBuilder<TShapeModel, TConnectionModel>>

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Points(Action<DiagramConnectionPointFactory<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionPointFactory<TShapeModel, TConnectionModel>>

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Selectable(bool value)
Parameters:valuebool

The value for Selectable

Returns:

DiagramConnectionBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionBuilder<TShapeModel, TConnectionModel> instance.

Defines the connection selection configuration.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Selection(Action<DiagramConnectionSelectionSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionSelectionSettingsBuilder<TShapeModel, TConnectionModel>>

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> StartCap(Action<DiagramConnectionStartCapSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionStartCapSettingsBuilder<TShapeModel, TConnectionModel>>

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> StartCap(string startCap)
Parameters:startCapstring

The startcap.

Returns:

DiagramConnectionBuilder<TShapeModel, TConnectionModel>

Returns the current instance of DiagramConnectionBuilder<TShapeModel, TConnectionModel> .

Defines the stroke configuration.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Stroke(Action<DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel>>

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> To(Action<DiagramConnectionToSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionToSettingsBuilder<TShapeModel, TConnectionModel>>

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> To(string to)
Parameters:tostring

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.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> ToConnector(string value)
Parameters:valuestring

The value for ToConnector

Returns:

DiagramConnectionBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionBuilder<TShapeModel, TConnectionModel> instance.

The connection type.

C#
public DiagramConnectionBuilder<TShapeModel, TConnectionModel> Type(DiagramConnectionType value)
Parameters:valueDiagramConnectionType

The value for Type

Returns:

DiagramConnectionBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionBuilder<TShapeModel, TConnectionModel> instance.