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

Defines the fluent API for configuring the DiagramConnectionStartCapStrokeSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramConnectionStartCapStrokeSettingsBuilder<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 DiagramConnectionStartCapStrokeSettingsBuilder(DiagramConnectionStartCapStrokeSettings settings)
Parameters:settingsDiagramConnectionStartCapStrokeSettings

Methods

Defines the connection start cap stroke color.

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

The value that configures the color.

Returns:

DiagramConnectionStartCapStrokeSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the connection start 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 DiagramConnectionStartCapStrokeSettingsBuilder<TShapeModel, TConnectionModel> DashType(DiagramDashType value)
Parameters:valueDiagramDashType

The value that configures the dash type.

Returns:

DiagramConnectionStartCapStrokeSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the connection start cap stroke width.

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

The value that configures the width.

Returns:

DiagramConnectionStartCapStrokeSettingsBuilder<TShapeModel, TConnectionModel>

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