DiagramConnectionFromSettingsBuilder

Methods

X(System.Double)

Defines the x-coordinate of the connection source.

Parameters

value - System.Double

The value that configures the x-coordinate.

Example

Razor
 
             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Connections(c => c
                .Add().From(f => f.X(20))
               )
             )
             

Y(System.Double)

Defines the y-coordinate of the connection source.

Parameters

value - System.Double

The value that configures the y-coordinate.

Example

Razor
 
             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Connections(c => c
                .Add().From(f => f.Y(70))
               )
             )
             

Id(System.Object)

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

Parameters

value - System.Object

The value that configures the source shape id.

Example

Razor
 
             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Connections(c => c
                .Add().From(f => f.Id("1"))
               )
             )
             

Connector(System.String)

Defines the name of the source shape connector.

Parameters

value - System.String

The value that configures the source shape connector name.

Example

Razor
 
             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Connections(c => c
                .Add().From(f => f.Connector("Id"))
               )
             )