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

Defines the fluent API for configuring DiagramConnectionFromSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel>

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

Constructors

DiagramConnectionFromSettingsBuilder method.

C#
public DiagramConnectionFromSettingsBuilder(DiagramConnectionFromSettings<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramConnectionFromSettings<TShapeModel, TConnectionModel>

Properties

Container

DiagramConnectionFromSettings<TShapeModel, TConnectionModel>

Container member.

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

Methods

Defines the name of the source shape connector.

C#
public DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel> Connector(string value)
Parameters:valuestring

The value that configures the source shape connector name.

Returns:

DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().From(f =&gt; f.Connector("Id"))
)
)

Defines the shape id that corresponds to the source of the connection.

C#
public DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel> Id(object value)
Parameters:valueobject

The value that configures the source shape id.

Returns:

DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().From(f =&gt; f.Id("1"))
)
)

Defines the x-coordinate of the connection source.

C#
public DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel> X(double value)
Parameters:valuedouble

The value for X

Returns:

DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the y-coordinate of the connection source.

C#
public DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel> Y(double value)
Parameters:valuedouble

The value for Y

Returns:

DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionFromSettingsBuilder<TShapeModel, TConnectionModel> instance.