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

Defines the fluent API for configuring the DiagramConnectionDefaultsStrokeSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramConnectionDefaultsStrokeSettingsBuilder<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 DiagramConnectionDefaultsStrokeSettingsBuilder(DiagramConnectionDefaultsStrokeSettings settings)
Parameters:settingsDiagramConnectionDefaultsStrokeSettings

Methods

Defines the default stroke color of the connection.

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

The value that configures the color.

Returns:

DiagramConnectionDefaultsStrokeSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Stroke(s =&gt; s.Color("blue"))
)
)

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

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

The value that configures the line cap.

Returns:

DiagramConnectionDefaultsStrokeSettingsBuilder<TShapeModel, TConnectionModel>

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

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

The value that configures the line join.

Returns:

DiagramConnectionDefaultsStrokeSettingsBuilder<TShapeModel, TConnectionModel>

Defines the default stroke width of the connection.

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

The value that configures the width.

Returns:

DiagramConnectionDefaultsStrokeSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.Stroke(s =&gt; s.Width(3))
)
)