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

DiagramShapeStrokeSettingsBuilder

Methods

Color(System.String)

Defines the color of the shape's stroke.

Parameters

value - System.String

The value that configures the color.

Example


             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Shapes(shape => shape
                .Add().Stroke(s => s.Color("yellow"))
               )
             )

DashType(System.String)

Defines the dash type of the shape's stroke. 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.

Parameters

value - System.String

The value that configures the dash type.

Example


             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Shapes(shape => shape
                .Add().Stroke(s => s.DashType("dashDot"))
               )
             )

Width(System.Double)

Defines the thickness or width of the shape's stroke.

Parameters

value - System.Double

The value that configures the width.

Example


             @(Html.Kendo().Diagram()
              .Name("diagram")
              .Shapes(shape => shape
                .Add().Stroke(s => s.Width(3))
               )
             )

In this article
Not finding the help you need?