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

Defines the fluent API for configuring the DiagramConnectionStrokeSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel>

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

Constructors

C#
public DiagramConnectionStrokeSettingsBuilder(DiagramConnectionStrokeSettings settings)
Parameters:settingsDiagramConnectionStrokeSettings

Methods

Defines the stroke or line color of the connection.

C#
public DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel> Color(string value)
Parameters:valuestring

The value that configures the color.

Returns:

DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().Stroke(s =&gt; s.Color("#33ccff"))
)
)

Defines the line join style of the stroke. Supported values are "butt", "round", and "square".

C#
public DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel> LineCap(DiagramStrokeLineCap value)
Parameters:valueDiagramStrokeLineCap

The value that configures the line cap.

Returns:

DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel>

Defines the line join style of the stroke. Supported values are "bevel", "miter", and "round".

C#
public DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel> LineJoin(DiagramStrokeLineJoin value)
Parameters:valueDiagramStrokeLineJoin

The value that configures the line join.

Returns:

DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel>

Defines the stroke width of the connection.

C#
public DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel> Width(double value)
Parameters:valuedouble

The value that configures the width.

Returns:

DiagramConnectionStrokeSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().Stroke(s =&gt; s.Width(2))
)
)