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

Defines the fluent API for configuring the MapLayerDefaultsShapeStyleStrokeSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class MapLayerDefaultsShapeStyleStrokeSettingsBuilder

Inheritance: objectMapLayerDefaultsShapeStyleStrokeSettingsBuilder

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

Constructors

C#
public MapLayerDefaultsShapeStyleStrokeSettingsBuilder(MapLayerDefaultsShapeStyleStrokeSettings settings)
Parameters:settingsMapLayerDefaultsShapeStyleStrokeSettings

Methods

Defines the default stroke color for the Shape layers. Accepts a valid CSS color string, including HEX and Rgb.

C#
public MapLayerDefaultsShapeStyleStrokeSettingsBuilder Color(string value)
Parameters:valuestring

The value that configures the color.

Returns:

MapLayerDefaultsShapeStyleStrokeSettingsBuilder

Example:
C#
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Shape(shape => shape.Style(style => style.Stroke(stroke => stroke.Color("green"))));
})
)

Defines the default dash type for the Shape layers. The supported dash types are: "dash" - a line consisting of dashes; "dashDot" - a line consisting of a repeating pattern of dash-dot; "dot" - a line consisting of dots; "longDash" - a line consisting of a repeating pattern of long-dash; "longDashDot" - a line consisting of a repeating pattern of long-dash-dot; "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot or "solid" - a solid line.

C#
public MapLayerDefaultsShapeStyleStrokeSettingsBuilder DashType(string value)
Parameters:valuestring

The value that configures the dash type.

Returns:

MapLayerDefaultsShapeStyleStrokeSettingsBuilder

Example:
C#
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Shape(shape => shape.Style(style => style.Stroke(stroke => stroke.DashType("longDashDot"))));
})
)

Defines the default stroke opacity (0 to 1) for the Shape layers.

C#
public MapLayerDefaultsShapeStyleStrokeSettingsBuilder Opacity(double value)
Parameters:valuedouble

The value that configures the opacity.

Returns:

MapLayerDefaultsShapeStyleStrokeSettingsBuilder

Example:
C#
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Shape(shape => shape.Style(style => style.Stroke(stroke => stroke.Opacity(0.8))));
})
)

Defines the default stroke width for the Shape layers.

C#
public MapLayerDefaultsShapeStyleStrokeSettingsBuilder Width(double value)
Parameters:valuedouble

The value that configures the width.

Returns:

MapLayerDefaultsShapeStyleStrokeSettingsBuilder

Example:
C#
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Shape(shape => shape.Style(style => style.Stroke(stroke => stroke.Width(5))));
})
)