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

Defines the fluent API for configuring the DiagramConnectionEndCapStrokeSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramConnectionEndCapStrokeSettingsBuilder<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 DiagramConnectionEndCapStrokeSettingsBuilder(DiagramConnectionEndCapStrokeSettings settings)
Parameters:settingsDiagramConnectionEndCapStrokeSettings

Methods

Defines the connection end cap stroke color.

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

The value that configures the color.

Returns:

DiagramConnectionEndCapStrokeSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the connection end cap stroke dash type. The supported values are: "dash" - A line that consists of dashes. "dashDot" - A line that consists of a repeating pattern of dash-dot. "dot" - A line that consists of dots. "longDash" - A line that consists of a repeating pattern of long-dash. "longDashDot" - A line that consists of a repeating pattern of long-dash-dot. "longDashDotDot" - A line that consists of a repeating pattern of long-dash-dot-dot. "solid" - A solid line.

C#
public DiagramConnectionEndCapStrokeSettingsBuilder<TShapeModel, TConnectionModel> DashType(DiagramDashType value)
Parameters:valueDiagramDashType

The value that configures the dash type.

Returns:

DiagramConnectionEndCapStrokeSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().EndCap(endCap =&gt; endCap.Stroke(s =&gt; s.DashType(DiagramDashType.DashDot)))
)
)

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

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

The value that configures the linecap.

Returns:

DiagramConnectionEndCapStrokeSettingsBuilder<TShapeModel, TConnectionModel>

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

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

The value that configures the linejoin.

Returns:

DiagramConnectionEndCapStrokeSettingsBuilder<TShapeModel, TConnectionModel>

Defines the connection end cap stroke width.

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

The value that configures the width.

Returns:

DiagramConnectionEndCapStrokeSettingsBuilder<TShapeModel, TConnectionModel>

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